diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-08-01 18:16:56 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-08-01 18:16:56 +0000 |
commit | b8a2fb9484e34626d2bc987c7265d619e53d1227 (patch) | |
tree | 3c8ee3716604d3a4e86a0fbde01d0caad7b88caf /utility.c | |
parent | d1ceeb132c195b76b9978a0c14b4858742a82a6f (diff) | |
download | busybox-w32-b8a2fb9484e34626d2bc987c7265d619e53d1227.tar.gz busybox-w32-b8a2fb9484e34626d2bc987c7265d619e53d1227.tar.bz2 busybox-w32-b8a2fb9484e34626d2bc987c7265d619e53d1227.zip |
Fix bug 1017, which reports that insmod segfaults when /lib/modules doesn't
exist. Also allow early search termination (per the comments).
git-svn-id: svn://busybox.net/trunk/busybox@931 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'utility.c')
-rw-r--r-- | utility.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -641,7 +641,7 @@ int recursiveAction(const char *fileName, | |||
641 | status = | 641 | status = |
642 | recursiveAction(nextFile, TRUE, followLinks, depthFirst, | 642 | recursiveAction(nextFile, TRUE, followLinks, depthFirst, |
643 | fileAction, dirAction, userData); | 643 | fileAction, dirAction, userData); |
644 | if (status < 0) { | 644 | if (status == FALSE) { |
645 | closedir(dir); | 645 | closedir(dir); |
646 | return FALSE; | 646 | return FALSE; |
647 | } | 647 | } |