projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11586a9
)
Fix loopfiles to not call function() on file not found.
0.0.4
author
Rob Landley
<rob@landley.net>
Tue, 1 Jan 2008 08:39:29 +0000
(
02:39
-0600)
committer
Rob Landley
<rob@landley.net>
Tue, 1 Jan 2008 08:39:29 +0000
(
02:39
-0600)
lib/lib.c
patch
|
blob
|
history
diff --git
a/lib/lib.c
b/lib/lib.c
index
6699a68
..
cea3e4b
100644
(file)
--- a/
lib/lib.c
+++ b/
lib/lib.c
@@
-600,6
+600,7
@@
void loopfiles(char **argv, void (*function)(int fd, char *name))
else if (0>(fd = open(*argv, O_RDONLY))) {
perror_msg("%s",*argv);
toys.exitval = 1;
+ continue;
}
function(fd, *argv);
close(fd);