Fix bug 1017, which reports that insmod segfaults when /lib/modules doesn't

exist.  Also allow early search termination (per the comments).
This commit is contained in:
Matt Kraai
2000-08-01 18:16:56 +00:00
parent 98bbd688a8
commit 0f8f7b8a35
3 changed files with 11 additions and 9 deletions

View File

@ -641,7 +641,7 @@ int recursiveAction(const char *fileName,
status =
recursiveAction(nextFile, TRUE, followLinks, depthFirst,
fileAction, dirAction, userData);
if (status < 0) {
if (status == FALSE) {
closedir(dir);
return FALSE;
}