diff options
author | John Beppu <beppu@lbox.org> | 2000-02-13 04:10:57 +0000 |
---|---|---|
committer | John Beppu <beppu@lbox.org> | 2000-02-13 04:10:57 +0000 |
commit | 08c965a0a10cb28a0be30cf257b0ca9852e7ffef (patch) | |
tree | 5db989e3ca6210c3966f4cb4bfb8e364e21b2425 | |
parent | 5e2b96345ca2a791e56b47d16c1f1cda5d5f6f2b (diff) | |
download | busybox-w32-08c965a0a10cb28a0be30cf257b0ca9852e7ffef.tar.gz busybox-w32-08c965a0a10cb28a0be30cf257b0ca9852e7ffef.tar.bz2 busybox-w32-08c965a0a10cb28a0be30cf257b0ca9852e7ffef.zip |
- I suspect the problem has something to do w/ symlinks.
- It's not completely in agreement w/ GNU/du, but
+ the answer is much closer than before.
- Some of the right-shifts seem to have mysteriously disappeared.
I put them back in.
-rw-r--r-- | coreutils/du.c | 4 | ||||
-rw-r--r-- | du.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/du.c b/coreutils/du.c index 912605882..7b5acb490 100644 --- a/coreutils/du.c +++ b/coreutils/du.c | |||
@@ -70,7 +70,7 @@ static long du(char *filename) | |||
70 | } | 70 | } |
71 | 71 | ||
72 | du_depth++; | 72 | du_depth++; |
73 | sum = statbuf.st_blocks; | 73 | sum = (statbuf.st_blocks >> 1); |
74 | 74 | ||
75 | /* Don't add in stuff pointed to by links */ | 75 | /* Don't add in stuff pointed to by links */ |
76 | if (S_ISLNK(statbuf.st_mode)) { | 76 | if (S_ISLNK(statbuf.st_mode)) { |
@@ -153,4 +153,4 @@ int du_main(int argc, char **argv) | |||
153 | exit(0); | 153 | exit(0); |
154 | } | 154 | } |
155 | 155 | ||
156 | /* $Id: du.c,v 1.12 2000/02/11 21:55:04 erik Exp $ */ | 156 | /* $Id: du.c,v 1.13 2000/02/13 04:10:57 beppu Exp $ */ |
@@ -70,7 +70,7 @@ static long du(char *filename) | |||
70 | } | 70 | } |
71 | 71 | ||
72 | du_depth++; | 72 | du_depth++; |
73 | sum = statbuf.st_blocks; | 73 | sum = (statbuf.st_blocks >> 1); |
74 | 74 | ||
75 | /* Don't add in stuff pointed to by links */ | 75 | /* Don't add in stuff pointed to by links */ |
76 | if (S_ISLNK(statbuf.st_mode)) { | 76 | if (S_ISLNK(statbuf.st_mode)) { |
@@ -153,4 +153,4 @@ int du_main(int argc, char **argv) | |||
153 | exit(0); | 153 | exit(0); |
154 | } | 154 | } |
155 | 155 | ||
156 | /* $Id: du.c,v 1.12 2000/02/11 21:55:04 erik Exp $ */ | 156 | /* $Id: du.c,v 1.13 2000/02/13 04:10:57 beppu Exp $ */ |