aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-12-12 06:58:53 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-12-12 06:58:53 +0000
commit41a72eaea98f1d99fc09678e4b9b2215ff13da24 (patch)
tree6a1f5d4bf9f9bf282ff4ce1d26c67ce77e66024b
parent72dccd8fcace576e1908f93e3dfc0ca660815af2 (diff)
downloadbusybox-w32-41a72eaea98f1d99fc09678e4b9b2215ff13da24.tar.gz
busybox-w32-41a72eaea98f1d99fc09678e4b9b2215ff13da24.tar.bz2
busybox-w32-41a72eaea98f1d99fc09678e4b9b2215ff13da24.zip
Bug 310: be consistent about stat/lstat and chown/lchown to avoid accidentally
modifying permissions or ownership when twiddling symlinks. git-svn-id: svn://busybox.net/trunk/busybox@12843 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--coreutils/chmod.c2
1 files changed, 1 insertions, 1 deletions
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)
94 94
95 /* Ok, ready to do the deed now */ 95 /* Ok, ready to do the deed now */
96 do { 96 do {
97 if (! recursive_action (*argv, recursiveFlag, FALSE, FALSE, 97 if (! recursive_action (*argv, recursiveFlag, TRUE, FALSE,
98 fileAction, fileAction, smode)) { 98 fileAction, fileAction, smode)) {
99 retval = EXIT_FAILURE; 99 retval = EXIT_FAILURE;
100 } 100 }