[hackers] [sbase] Audit sponge(1) || FRIGN

From: <git_AT_suckless.org>
Date: Tue, 24 Mar 2015 23:54:03 +0100 (CET)

commit 80d89c400fa3f10afdaa1c4c50a1ae60e514a4c5
Author: FRIGN <dev_AT_frign.de>
Date: Sun Mar 1 23:42:16 2015 +0100

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

diff --git a/README b/README
index c53be52..fddc9ac 100644
--- a/README
+++ b/README
_AT_@ -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
index ee21c27..bcc0f7a 100644
--- a/sponge.c
+++ b/sponge.c
_AT_@ -7,7 +7,7 @@
 static void
 usage(void)
 {
- eprintf("usage: sponge file\n");
+ eprintf("usage: %s file\n", argv0);
 }
 
 int
_AT_@ -25,7 +25,6 @@ main(int argc, char *argv[])
 
         if (!(tmpfp = tmpfile()))
                 eprintf("tmpfile:");
-
         concat(stdin, "<stdin>", tmpfp, "<tmpfile>");
         rewind(tmpfp);
 
Received on Tue Mar 24 2015 - 23:54:03 CET

This archive was generated by hypermail 2.3.0 : Wed Mar 25 2015 - 00:11:08 CET