From 3632d5d8fe05d14da983e37c7cd34db0769e6238 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 1 Jan 2008 02:39:29 -0600 Subject: Fix loopfiles to not call function() on file not found. --- lib/lib.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/lib.c b/lib/lib.c index 6699a685..cea3e4b1 100644 --- 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); -- cgit v1.2.3