diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-02-16 09:23:07 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-02-16 09:23:07 +0000 |
commit | 8d2affa1b38eb0b4eed82854d4b80e7d957a736e (patch) | |
tree | a62d543c07b6cb2d9a56ca6bbbc7b6a55987d7b7 /usr.bin/du/du.c | |
parent | b18a1db69b3dd6dacbc169afd4dc29600d8d660c (diff) |
-r for xpg conformance
Diffstat (limited to 'usr.bin/du/du.c')
-rw-r--r-- | usr.bin/du/du.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c index 1cdc80fcbcb..66abc5ff162 100644 --- a/usr.bin/du/du.c +++ b/usr.bin/du/du.c @@ -1,4 +1,4 @@ -/* $OpenBSD: du.c,v 1.4 1997/01/15 23:42:25 millert Exp $ */ +/* $OpenBSD: du.c,v 1.5 1998/02/16 09:23:06 deraadt Exp $ */ /* $NetBSD: du.c,v 1.11 1996/10/18 07:20:35 thorpej Exp $ */ /* @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)du.c 8.5 (Berkeley) 5/4/95"; #else -static char rcsid[] = "$OpenBSD: du.c,v 1.4 1997/01/15 23:42:25 millert Exp $"; +static char rcsid[] = "$OpenBSD: du.c,v 1.5 1998/02/16 09:23:06 deraadt Exp $"; #endif #endif /* not lint */ @@ -82,7 +82,7 @@ main(argc, argv) Hflag = Lflag = Pflag = aflag = cflag = kflag = sflag = 0; totalblocks = 0; ftsoptions = FTS_PHYSICAL; - while ((ch = getopt(argc, argv, "HLPacksx")) != -1) + while ((ch = getopt(argc, argv, "HLPacksxr")) != -1) switch (ch) { case 'H': Hflag = 1; @@ -109,6 +109,8 @@ main(argc, argv) case 's': sflag = 1; break; + case 'r': + break; case 'x': ftsoptions |= FTS_XDEV; break; @@ -248,6 +250,6 @@ usage() { (void)fprintf(stderr, - "usage: du [-H | -L | -P] [-a | -s] [-ckx] [file ...]\n"); + "usage: du [-H | -L | -P] [-a | -s] [-ckrx] [file ...]\n"); exit(1); } |