diff options
Diffstat (limited to 'debianutils')
| -rw-r--r-- | debianutils/run_parts.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/debianutils/run_parts.c b/debianutils/run_parts.c index c80cc863f..196e0640d 100644 --- a/debianutils/run_parts.c +++ b/debianutils/run_parts.c | |||
| @@ -133,10 +133,10 @@ static int bb_alphasort(const void *p1, const void *p2) | |||
| 133 | 133 | ||
| 134 | static int FAST_FUNC act(const char *file, struct stat *statbuf, void *args UNUSED_PARAM, int depth) | 134 | static int FAST_FUNC act(const char *file, struct stat *statbuf, void *args UNUSED_PARAM, int depth) |
| 135 | { | 135 | { |
| 136 | if (depth == 1) | 136 | if (depth == 0) |
| 137 | return TRUE; | 137 | return TRUE; |
| 138 | 138 | ||
| 139 | if (depth == 2 | 139 | if (depth == 1 |
| 140 | && ( !(statbuf->st_mode & (S_IFREG | S_IFLNK)) | 140 | && ( !(statbuf->st_mode & (S_IFREG | S_IFLNK)) |
| 141 | || invalid_name(file) | 141 | || invalid_name(file) |
| 142 | || (!(option_mask32 & OPT_l) && access(file, X_OK) != 0)) | 142 | || (!(option_mask32 & OPT_l) && access(file, X_OK) != 0)) |
| @@ -200,8 +200,8 @@ int run_parts_main(int argc UNUSED_PARAM, char **argv) | |||
| 200 | act, /* file action */ | 200 | act, /* file action */ |
| 201 | act, /* dir action */ | 201 | act, /* dir action */ |
| 202 | NULL, /* user data */ | 202 | NULL, /* user data */ |
| 203 | 1 /* depth */ | 203 | 0 /* depth */ |
| 204 | ); | 204 | ); |
| 205 | 205 | ||
| 206 | if (!names) | 206 | if (!names) |
| 207 | return 0; | 207 | return 0; |
