diff options
| author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-04-07 17:59:04 +0000 |
|---|---|---|
| committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-04-07 17:59:04 +0000 |
| commit | 88beab48e8e0ea2cc7db9534877d79d0dbfa7c2c (patch) | |
| tree | 091cbae3d3b7de5f72a060d4475b21ee826dbadf | |
| parent | 1012e628a0be0a9b0faacfab383d35851955a2a5 (diff) | |
| download | busybox-w32-88beab48e8e0ea2cc7db9534877d79d0dbfa7c2c.tar.gz busybox-w32-88beab48e8e0ea2cc7db9534877d79d0dbfa7c2c.tar.bz2 busybox-w32-88beab48e8e0ea2cc7db9534877d79d0dbfa7c2c.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
git-svn-id: svn://busybox.net/trunk/busybox@8725 69ca8d6d-28ef-0310-b511-8ec308f3f277
| -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); |
