summaryrefslogtreecommitdiff
path: root/utility.c
diff options
context:
space:
mode:
authorMatt Kraai2000-08-01 18:16:56 +0000
committerMatt Kraai2000-08-01 18:16:56 +0000
commit0f8f7b8a35cc87965272f53bf9b504866e6e0692 (patch)
tree3c8ee3716604d3a4e86a0fbde01d0caad7b88caf /utility.c
parent98bbd688a80627ec4071b7c819ee2116f5ecc6d4 (diff)
downloadbusybox-0f8f7b8a35cc87965272f53bf9b504866e6e0692.zip
busybox-0f8f7b8a35cc87965272f53bf9b504866e6e0692.tar.gz
Fix bug 1017, which reports that insmod segfaults when /lib/modules doesn't
exist. Also allow early search termination (per the comments).
Diffstat (limited to 'utility.c')
-rw-r--r--utility.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utility.c b/utility.c
index 565fd73..422d569 100644
--- a/utility.c
+++ b/utility.c
@@ -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;
}