Fixed removing of symlinks.
authorlace <>
Thu, 27 Sep 2007 15:21:03 +0000 (15:21 +0000)
committerlace <>
Thu, 27 Sep 2007 15:21:03 +0000 (15:21 +0000)
bin/cvsutil

index 18cdce1..72c19d5 100755 (executable)
@@ -222,7 +222,8 @@ sub localactionrm
 {
 my($filename)=@_;
 
-       chmod 0700,$filename or do {
+       # &chmod follows the symlinks.
+       -l $filename or chmod 0700,$filename or do {
                mayfatal "File \"$_\" cannot be chmod(2)ed" if !$!{ENOENT};
                };
        # '\1' for '-r':