diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-04-07 17:59:04 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-04-07 17:59:04 +0000 |
commit | 66a56aa028b430a3d20ac47c20dccf2aad3b21a0 (patch) | |
tree | 091cbae3d3b7de5f72a060d4475b21ee826dbadf /libbb/recursive_action.c | |
parent | 57a0d9156c3e7156ad019e744d7f55097fa96d34 (diff) | |
download | busybox-w32-66a56aa028b430a3d20ac47c20dccf2aad3b21a0.tar.gz busybox-w32-66a56aa028b430a3d20ac47c20dccf2aad3b21a0.tar.bz2 busybox-w32-66a56aa028b430a3d20ac47c20dccf2aad3b21a0.zip |
Vladimir N. Oleynik writes:
Hi.
Last changes (rev 1.12) to recursive_actions() by Christian Grigis
have problem.
Test for demonstrate:
$ mkdir aaa bbb ccc
$ su
# chown root bbb
# chmod 700 bbb
# exit
$ busybox chmod 777 -R .
./bbb: Permision denied
But "./ccc" mode not changed. Previous variant works fine,
errors skiped and continued recursion.
--w
vodz
Diffstat (limited to 'libbb/recursive_action.c')
-rw-r--r-- | libbb/recursive_action.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/recursive_action.c b/libbb/recursive_action.c index 72371963f..d27629829 100644 --- a/libbb/recursive_action.c +++ b/libbb/recursive_action.c | |||
@@ -100,7 +100,7 @@ int recursive_action(const char *fileName, | |||
100 | return FALSE; | 100 | return FALSE; |
101 | } | 101 | } |
102 | status = TRUE; | 102 | status = TRUE; |
103 | while (status && (next = readdir(dir)) != NULL) { | 103 | while ((next = readdir(dir)) != NULL) { |
104 | char *nextFile; | 104 | char *nextFile; |
105 | 105 | ||
106 | nextFile = concat_subpath_file(fileName, next->d_name); | 106 | nextFile = concat_subpath_file(fileName, next->d_name); |