aboutsummaryrefslogtreecommitdiff
path: root/debianutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-10-01 20:27:28 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2020-10-01 20:27:28 +0200
commit3c3928fc658bddacd4e540589868bc28a8e4ca0a (patch)
treeed201a577877cf45911983def13513d8f6b91ef8 /debianutils
parent4a0eb0370c4df8ee01973b50bb460560532b79f1 (diff)
downloadbusybox-w32-3c3928fc658bddacd4e540589868bc28a8e4ca0a.tar.gz
busybox-w32-3c3928fc658bddacd4e540589868bc28a8e4ca0a.tar.bz2
busybox-w32-3c3928fc658bddacd4e540589868bc28a8e4ca0a.zip
tydy up a few uses of recursive_action(), no logic changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'debianutils')
-rw-r--r--debianutils/run_parts.c8
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
134static int FAST_FUNC act(const char *file, struct stat *statbuf, void *args UNUSED_PARAM, int depth) 134static 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;