From 8c35d65c43216bb840326ac7476a180e2ae36fe9 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 27 Oct 2006 23:42:25 +0000 Subject: recursive_action: add depth param chmod: match coreutils versus following links --- modutils/insmod.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modutils') 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) -- cgit v1.2.3