sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit 80d89c400fa3f10afdaa1c4c50a1ae60e514a4c5
parent 0c9b52ef9bdb515f7ad5baf97694e6e43f9fa6f9
Author: FRIGN <dev@frign.de>
Date:   Sun Mar  1 23:42:16 +0100

Audit sponge(1)

Just a little usage()-fix. Mark it as audited in README.

Diffstat:
README | 2+-
sponge.c | 3+--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/README b/README @@ -67,7 +67,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support, =*| sleep yes none sort no -m, -o, -d, -f, -i =* split yes none -=* sponge non-posix none +=*| sponge non-posix none #* strings yes none =* sync non-posix none =* tail yes none diff --git a/sponge.c b/sponge.c @@ -7,7 +7,7 @@ static void usage(void) { - eprintf("usage: sponge file\n"); + eprintf("usage: %s file\n", argv0); } int @@ -25,7 +25,6 @@ main(int argc, char *argv[]) if (!(tmpfp = tmpfile())) eprintf("tmpfile:"); - concat(stdin, "<stdin>", tmpfp, "<tmpfile>"); rewind(tmpfp);