changeset 220:104792581cc9 0.0.4

Fix loopfiles to not call function() on file not found.
author Rob Landley <rob@landley.net>
date Tue, 01 Jan 2008 02:39:29 -0600
parents cfa11e043e2b
children 40552fcd706c
files lib/lib.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/lib.c	Mon Dec 31 14:34:41 2007 -0600
+++ b/lib/lib.c	Tue Jan 01 02:39:29 2008 -0600
@@ -600,6 +600,7 @@
 		else if (0>(fd = open(*argv, O_RDONLY))) {
 			perror_msg("%s",*argv);
 			toys.exitval = 1;
+			continue;
 		}
 		function(fd, *argv);
 		close(fd);