From: lace <> Date: Thu, 27 Sep 2007 15:21:03 +0000 (+0000) Subject: Fixed removing of symlinks. X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=cef2a919b76886df5c26820537f6dc0113dd7569;ds=sidebyside Fixed removing of symlinks. --- diff --git a/bin/cvsutil b/bin/cvsutil index 18cdce1..72c19d5 100755 --- a/bin/cvsutil +++ b/bin/cvsutil @@ -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':