summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2009-06-03 15:15:16 +0000
committermillert <millert@openbsd.org>2009-06-03 15:15:16 +0000
commit604418b0463dcedc4496f1a44ec31cb38c0545fb (patch)
tree9b7c3eeff5b74870a447fbe6e2104fe8f1c37dcf
parentSync (diff)
downloadwireguard-openbsd-604418b0463dcedc4496f1a44ec31cb38c0545fb.tar.xz
wireguard-openbsd-604418b0463dcedc4496f1a44ec31cb38c0545fb.zip
If both -h and -k are specified, the latter takes precedence.
Prompted by jmc@, OK otto@
-rw-r--r--usr.bin/du/du.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c
index 0674e069e4f..24306bb6ee5 100644
--- a/usr.bin/du/du.c
+++ b/usr.bin/du/du.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: du.c,v 1.19 2006/01/25 06:20:03 tedu Exp $ */
+/* $OpenBSD: du.c,v 1.20 2009/06/03 15:15:16 millert Exp $ */
/* $NetBSD: du.c,v 1.11 1996/10/18 07:20:35 thorpej Exp $ */
/*
@@ -43,7 +43,7 @@ static const char copyright[] =
#if 0
static char sccsid[] = "@(#)du.c 8.5 (Berkeley) 5/4/95";
#else
-static const char rcsid[] = "$OpenBSD: du.c,v 1.19 2006/01/25 06:20:03 tedu Exp $";
+static const char rcsid[] = "$OpenBSD: du.c,v 1.20 2009/06/03 15:15:16 millert Exp $";
#endif
#endif /* not lint */
@@ -103,9 +103,11 @@ main(int argc, char *argv[])
break;
case 'h':
hflag = 1;
+ kflag = 0;
break;
case 'k':
kflag = 1;
+ hflag = 0;
break;
case 's':
sflag = 1;