commit | 0aa611816772021e706f0996aa2eed56d26ad696 | [log] [tgz] |
---|---|---|
author | John Beppu <beppu@lbox.org> | Thu Dec 16 21:16:47 1999 +0000 |
committer | John Beppu <beppu@lbox.org> | Thu Dec 16 21:16:47 1999 +0000 |
tree | 451789910364c09ee02400442d9f8531ec9c0f90 | |
parent | 1c5b2589d1287008899c07f45541286fe8c37508 [diff] [blame] |
killed an elusive bug in du -s.
diff --git a/du.c b/du.c index e5788c6..ed90bc4 100644 --- a/du.c +++ b/du.c
@@ -136,11 +136,11 @@ int sum; for ( ; i < argc; i++) { sum = du(argv[i]); - if (sum) { print_normal(sum, argv[i]); } + if ((sum) && (isDirectory(argv[i]))) { print_normal(sum, argv[i]); } } } exit(0); } -/* $Id: du.c,v 1.6 1999/12/15 18:52:17 beppu Exp $ */ +/* $Id: du.c,v 1.7 1999/12/16 21:16:47 beppu Exp $ */