diff options
author | Rob Landley <rob@landley.net> | 2008-07-03 19:16:38 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2008-07-03 19:16:38 -0500 |
commit | df92ef5e8e6cf62358b37f441952b7b5f310b20c (patch) | |
tree | c13b0b50d681e8e3d899a33b9a7ceddf9e5e5d22 | |
parent | 1a35c47e460f785f5979d756c7f5d4f201f3f87e (diff) | |
download | toybox-df92ef5e8e6cf62358b37f441952b7b5f310b20c.tar.gz |
Finish bzcat.
-rw-r--r-- | toys/bzcat.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/toys/bzcat.c b/toys/bzcat.c index d540524d..b8e16958 100644 --- a/toys/bzcat.c +++ b/toys/bzcat.c @@ -10,7 +10,7 @@ USE_BZCAT(NEWTOY(bzcat, NULL, TOYFLAG_USR|TOYFLAG_BIN)) config BZCAT bool "bzcat" - default n + default y help usage: bzcat [filename...] @@ -19,7 +19,12 @@ config BZCAT #include "toys.h" +static void do_bzcat(int fd, char *name) +{ + bunzipStream(fd, 1); +} + void bzcat_main(void) { - bunzipStream(0, 1); + loopfiles(toys.optargs, do_bzcat); } |