diff options
author | Glenn L McGrath | 2004-03-10 09:10:53 +0000 |
---|---|---|
committer | Glenn L McGrath | 2004-03-10 09:10:53 +0000 |
commit | 44c0e17dbe06e551f73141f56d75aa79129f1aea (patch) | |
tree | 73fc5a254f2be3b3463e02d5496b217578461098 /coreutils/du.c | |
parent | 7d0c51919ce4d0be00fd8ae92d6f16b86aad9fd2 (diff) | |
download | busybox-44c0e17dbe06e551f73141f56d75aa79129f1aea.zip busybox-44c0e17dbe06e551f73141f56d75aa79129f1aea.tar.gz |
Patch by Seth W. Klein, the -l switch was reversed
Diffstat (limited to 'coreutils/du.c')
-rw-r--r-- | coreutils/du.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coreutils/du.c b/coreutils/du.c index a9f6c28..7984d65 100644 --- a/coreutils/du.c +++ b/coreutils/du.c @@ -56,7 +56,7 @@ static unsigned int disp_k; /* bss inits to 0 */ #endif static int max_print_depth = INT_MAX; -static int count_hardlinks = INT_MAX; +static int count_hardlinks = 1; static int status #if EXIT_SUCCESS == 0 @@ -234,7 +234,7 @@ int du_main(int argc, char **argv) } if((opt & (1 << 7))) { /* -l opt */ - count_hardlinks = 1; + count_hardlinks = INT_MAX; } print_final_total = opt & (1 << 8); /* -c opt */ |