Must compile before committing.
authorMatt Kraai <kraai@debian.org>
Wed, 6 Dec 2000 15:56:31 +0000 (15:56 -0000)
committerMatt Kraai <kraai@debian.org>
Wed, 6 Dec 2000 15:56:31 +0000 (15:56 -0000)
coreutils/du.c
du.c

index 23bb141da7391512275e8be84fee1ff0953b96b9..313a910adb5ea8c3288204a83ebf49eb0f7abaf0 100644 (file)
@@ -154,7 +154,7 @@ int du_main(int argc, char **argv)
                long sum;
 
                for (i=optind; i < argc; i++) {
-                       if (du(argv[i]) == 0)
+                       if ((sum = du(argv[i])) == 0)
                                status = EXIT_FAILURE;
                        if (sum && isDirectory(argv[i], FALSE, NULL)) {
                                print_normal(sum, argv[i]);
@@ -166,7 +166,7 @@ int du_main(int argc, char **argv)
        return status;
 }
 
-/* $Id: du.c,v 1.27 2000/12/06 15:55:23 kraai Exp $ */
+/* $Id: du.c,v 1.28 2000/12/06 15:56:31 kraai Exp $ */
 /*
 Local Variables:
 c-file-style: "linux"
diff --git a/du.c b/du.c
index 23bb141da7391512275e8be84fee1ff0953b96b9..313a910adb5ea8c3288204a83ebf49eb0f7abaf0 100644 (file)
--- a/du.c
+++ b/du.c
@@ -154,7 +154,7 @@ int du_main(int argc, char **argv)
                long sum;
 
                for (i=optind; i < argc; i++) {
-                       if (du(argv[i]) == 0)
+                       if ((sum = du(argv[i])) == 0)
                                status = EXIT_FAILURE;
                        if (sum && isDirectory(argv[i], FALSE, NULL)) {
                                print_normal(sum, argv[i]);
@@ -166,7 +166,7 @@ int du_main(int argc, char **argv)
        return status;
 }
 
-/* $Id: du.c,v 1.27 2000/12/06 15:55:23 kraai Exp $ */
+/* $Id: du.c,v 1.28 2000/12/06 15:56:31 kraai Exp $ */
 /*
 Local Variables:
 c-file-style: "linux"