[hackers] [sbase] Finish up chroot(1) and md5sum(1) || FRIGN

From: <git_AT_suckless.org>
Date: Sun, 1 Feb 2015 00:30:22 +0100 (CET)

commit c91473427c795da4783a1ce3ae373cfa7baf6eb7
Author: FRIGN <dev_AT_frign.de>
Date: Sat Jan 31 23:54:23 2015 +0100

    Finish up chroot(1) and md5sum(1)

diff --git a/README b/README
index 56ba137..73cde37 100644
--- a/README
+++ b/README
_AT_@ -15,7 +15,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
 = chgrp no -h, -H, -L, -P
 =* chmod yes none
 = chown no -h, -H, -L, -P
-= chroot non-posix none
+=* chroot non-posix none
 =* cksum yes none
    cmp yes none
    cols non-posix none
_AT_@ -41,7 +41,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
 =* logger yes none
 =* logname yes none
 = ls no -C, -R, -q, -u
- md5sum non-posix none
+=* md5sum non-posix none
 =* mkdir yes none
 =* mkfifo yes none
 = mktemp non-posix none
diff --git a/chroot.1 b/chroot.1
index 8258d0f..27960f5 100644
--- a/chroot.1
+++ b/chroot.1
_AT_@ -1,24 +1,24 @@
-.Dd January 30, 2015
+.Dd January 31, 2015
 .Dt CHROOT 1
 .Os sbase
 .Sh NAME
 .Nm chroot
-.Nd invoke a command with a different root directory
+.Nd run a command or shell with a different root directory
 .Sh SYNOPSIS
 .Nm
 .Ar dir
-.Op Ar command Op Ar arg ...
+.Op Ar cmd Op Ar arg ...
 .Sh DESCRIPTION
 .Nm
 runs
-.Ar command
+.Ar cmd
 after changing the root directory to
 .Ar dir
 with the
 .Xr chroot 2
-system call, and changing the working directory to the new root.
+system call and after changing the working directory to the new root.
 If
-.Op Ar command
+.Ar cmd
 is not specified, an interactive shell is started in the new root.
 .Sh SEE ALSO
 .Xr chdir 2 ,
diff --git a/chroot.c b/chroot.c
index f62af90..8cf764d 100644
--- a/chroot.c
+++ b/chroot.c
_AT_@ -8,7 +8,7 @@
 static void
 usage(void)
 {
- eprintf("usage: chroot dir [command [arg...]]\n");
+ eprintf("usage: chroot dir [cmd [arg ...]]\n");
 }
 
 int
diff --git a/md5sum.1 b/md5sum.1
index 0c7b7f8..7e0e772 100644
--- a/md5sum.1
+++ b/md5sum.1
_AT_@ -1,17 +1,27 @@
-.Dd January 30, 2015
+.Dd January 31, 2015
 .Dt MD5SUM 1
 .Os sbase
 .Sh NAME
 .Nm md5sum
-.Nd compute MD5 message digest
+.Nd compute or check MD5 checksums
 .Sh SYNOPSIS
 .Nm
 .Op Fl c
 .Op Ar file ...
 .Sh DESCRIPTION
-Print MD5 (128-bit) checksums. With no file, read standard input.
+.Nm
+writes an MD5 (128-bit) checksum of each
+.Ar file
+to stdout.
+If no
+.Ar file
+is given
+.Nm
+reads from stdin.
 .Sh OPTIONS
 .Bl -tag -width Ds
 .It Fl c
-read list of MD5 checksums from file and check them
+Read list of MD5 checksums from each
+.Ar file
+and check them.
 .El
diff --git a/md5sum.c b/md5sum.c
index 4db3063..1618507 100644
--- a/md5sum.c
+++ b/md5sum.c
_AT_@ -18,7 +18,7 @@ struct crypt_ops md5_ops = {
 static void
 usage(void)
 {
- eprintf("usage: %s [-c] [file...]\n", argv0);
+ eprintf("usage: %s [-c] [file ...]\n", argv0);
 }
 
 int
Received on Sun Feb 01 2015 - 00:30:22 CET

This archive was generated by hypermail 2.3.0 : Sun Feb 01 2015 - 00:36:09 CET