aboutsummaryrefslogtreecommitdiff
path: root/coreutils/du.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-12-09 17:07:12 +0000
committerEric Andersen <andersen@codepoet.org>2000-12-09 17:07:12 +0000
commit9df383337043e2890060872628cc6cc6e5825b79 (patch)
tree3bfb41d97261b609beb0b57bf1e01a6c65beab6e /coreutils/du.c
parent29edd005f9e16d66f8fe85ac81da39d7d4311bc7 (diff)
downloadbusybox-9df383337043e2890060872628cc6cc6e5825b79.tar.gz
Fix problem where 'du file_that_exists' doesn't work.
Diffstat (limited to 'coreutils/du.c')
-rw-r--r--coreutils/du.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/du.c b/coreutils/du.c
index fa76465e7..ac9f60689 100644
--- a/coreutils/du.c
+++ b/coreutils/du.c
@@ -156,7 +156,7 @@ int du_main(int argc, char **argv)
for (i=optind; i < argc; i++) {
if ((sum = du(argv[i])) == 0)
status = EXIT_FAILURE;
- if (sum && is_directory(argv[i], FALSE, NULL)) {
+ if (is_directory(argv[i], FALSE, NULL)==FALSE) {
print_normal(sum, argv[i]);
}
reset_ino_dev_hashtable();
@@ -166,7 +166,7 @@ int du_main(int argc, char **argv)
return status;
}
-/* $Id: du.c,v 1.29 2000/12/07 19:56:48 markw Exp $ */
+/* $Id: du.c,v 1.30 2000/12/09 17:07:12 andersen Exp $ */
/*
Local Variables:
c-file-style: "linux"