From: Rob Landley Date: Mon, 12 Dec 2005 06:58:53 +0000 (-0000) Subject: Bug 310: be consistent about stat/lstat and chown/lchown to avoid accidentally X-Git-Tag: 1_1_0~431 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a75c180e538bb8adc0bb280c61dd933fd8d3e56d;p=oweals%2Fbusybox.git Bug 310: be consistent about stat/lstat and chown/lchown to avoid accidentally modifying permissions or ownership when twiddling symlinks. --- diff --git a/coreutils/chmod.c b/coreutils/chmod.c index 0cb888628..3014d374a 100644 --- a/coreutils/chmod.c +++ b/coreutils/chmod.c @@ -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; }