diff options
author | Rob Landley <rob@landley.net> | 2007-11-29 18:32:20 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2007-11-29 18:32:20 -0600 |
commit | ce6750ac69a7a80a18db7f0d7a217cbf37c7a04c (patch) | |
tree | cbe4209a7f4a3ca80163128bb3e6e6b0257cf5a4 /lib | |
parent | efda21ca931766eed6cfc49d1b2122c53827d9fc (diff) | |
download | toybox-ce6750ac69a7a80a18db7f0d7a217cbf37c7a04c.tar.gz |
Add sha1sum. (No -c mode yet.) Slight tweaks to loopfiles() too.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -554,7 +554,7 @@ void loopfiles(char **argv, void (*function)(int fd, char *name)) int fd; // If no arguments, read from stdin. - if (!*argv) function(0, *argv); + if (!*argv) function(0, "-"); else do { // Filename "-" means read from stdin. // Inability to open a file prints a warning, but doesn't exit. |