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

From: <git_AT_suckless.org>
Date: Tue, 3 Mar 2015 14:32:25 +0100 (CET)

commit c21e8930f2b6d89e83b05cba0b8ea44b99d04db3
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 03 2015 - 14:32:25 CET

This archive was generated by hypermail 2.3.0 : Tue Mar 03 2015 - 14:36:12 CET