diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-27 23:42:25 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-27 23:42:25 +0000 |
commit | 8c35d65c43216bb840326ac7476a180e2ae36fe9 (patch) | |
tree | 13d20b31e817dcff5124498ca0bec2cdf9781014 /modutils | |
parent | e80e2a3660bf09cc549cb2dfd2bdeb77ccde1231 (diff) | |
download | busybox-8c35d65c43216bb840326ac7476a180e2ae36fe9.tar.gz |
recursive_action: add depth param
chmod: match coreutils versus following links
Diffstat (limited to 'modutils')
-rw-r--r-- | modutils/insmod.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c index 00e25f5e3..49b823d0e 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c @@ -801,7 +801,7 @@ static char *m_fullName; static int check_module_name_match(const char *filename, struct stat *statbuf, - void *userdata) + void *userdata, int depth) { char *fullname = (char *) userdata; @@ -4048,7 +4048,7 @@ int insmod_main( int argc, char **argv) else module_dir = real_module_dir; recursive_action(module_dir, TRUE, FALSE, FALSE, - check_module_name_match, 0, m_fullName); + check_module_name_match, 0, m_fullName, 0); free(tmdn); } @@ -4063,7 +4063,7 @@ int insmod_main( int argc, char **argv) /* No module found under /lib/modules/`uname -r`, this * time cast the net a bit wider. Search /lib/modules/ */ if (!recursive_action(module_dir, TRUE, FALSE, FALSE, - check_module_name_match, 0, m_fullName) + check_module_name_match, 0, m_fullName, 0) ) { if (m_filename == 0 || ((fp = fopen(m_filename, "r")) == NULL) |