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

From: <git_AT_suckless.org>
Date: Sat, 28 Feb 2015 22:12:23 +0100 (CET)

commit 9f17b00d883c64d25fe09f388109010ef1dce372
Author: FRIGN <dev_AT_frign.de>
Date: Sat Feb 28 21:30:20 2015 +0100

    Audit rm(1)
    
    1) One small argc-style-matter
    2) manpage cleanup
    3) NOTE: The utility-functions will be evaluated separately.

diff --git a/README b/README
index 363536b..4a2d7a2 100644
--- a/README
+++ b/README
_AT_@ -56,7 +56,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
 =* pwd yes none
 = readlink non-posix none
 =* renice yes none
-=* rm yes none (-i)
+=*| rm yes none (-i)
 =* rmdir yes none
 # sed
     seq non-posix none
diff --git a/rm.1 b/rm.1
index e5d0d3c..eb6a83e 100644
--- a/rm.1
+++ b/rm.1
_AT_@ -1,4 +1,4 @@
-.Dd February 19, 2015
+.Dd February 28, 2015
 .Dt RM 1
 .Os sbase
 .Sh NAME
_AT_@ -23,9 +23,9 @@ is specified.
 .Sh OPTIONS
 .Bl -tag -width Ds
 .It Fl f
-Do not prompt before removing.
+Do not prompt before removing
 .Ar file .
-In the former case, do not report when
+Do not report when
 .Ar file
 doesn't exist or couldn't be removed.
 .It Fl Rr
diff --git a/rm.c b/rm.c
index aab3aad..73f3c31 100644
--- a/rm.c
+++ b/rm.c
_AT_@ -23,7 +23,7 @@ main(int argc, char *argv[])
                 usage();
         } ARGEND;
 
- if (argc < 1) {
+ if (!argc) {
                 if (!rm_fflag)
                         usage();
                 else
Received on Sat Feb 28 2015 - 22:12:23 CET

This archive was generated by hypermail 2.3.0 : Sat Feb 28 2015 - 22:24:13 CET