Bug 310: be consistent about stat/lstat and chown/lchown to avoid accidentally
authorRob Landley <rob@landley.net>
Mon, 12 Dec 2005 06:58:53 +0000 (06:58 -0000)
committerRob Landley <rob@landley.net>
Mon, 12 Dec 2005 06:58:53 +0000 (06:58 -0000)
modifying permissions or ownership when twiddling symlinks.

coreutils/chmod.c

index 0cb88862866ac349d32712e32ff42fca228a44c4..3014d374ae64a205b4e0ea479141fd6b3fbec70d 100644 (file)
@@ -94,7 +94,7 @@ int chmod_main(int argc, char **argv)
 
        /* Ok, ready to do the deed now */
        do {
-               if (! recursive_action (*argv, recursiveFlag, FALSE, FALSE,
+               if (! recursive_action (*argv, recursiveFlag, TRUE, FALSE,
                                                                fileAction,     fileAction, smode)) {
                        retval = EXIT_FAILURE;
                }