[hackers] [sbase] du: Reset size counter for each file read || Dionysis Grigoropoulos

From: <git_AT_suckless.org>
Date: Mon, 6 Apr 2015 09:57:52 +0200 (CEST)

commit ada69106b7c458f620d99f2e9e69d26a64b1ba95
Author: Dionysis Grigoropoulos <info_AT_erethon.com>
Date: Mon Apr 6 00:49:00 2015 +0300

    du: Reset size counter for each file read

diff --git a/du.c b/du.c
index 5b43598..5355f43 100644
--- a/du.c
+++ b/du.c
_AT_@ -103,6 +103,7 @@ main(int argc, char *argv[])
                 printpath(n, ".");
         } else {
                 for (; *argv; argc--, argv++) {
+ n = 0;
                         recurse(*argv, &n, &r);
                         printpath(n, *argv);
                 }
Received on Mon Apr 06 2015 - 09:57:52 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 06 2015 - 10:00:13 CEST