diff options
author | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-03-10 09:10:53 +0000 |
---|---|---|
committer | bug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-03-10 09:10:53 +0000 |
commit | 3a8a7393f08be8e93a4b5325bb6ccd59d0411750 (patch) | |
tree | 73fc5a254f2be3b3463e02d5496b217578461098 | |
parent | a018d67b84e6ba59076e24b631298f9849a4b4ca (diff) | |
download | busybox-w32-3a8a7393f08be8e93a4b5325bb6ccd59d0411750.tar.gz busybox-w32-3a8a7393f08be8e93a4b5325bb6ccd59d0411750.tar.bz2 busybox-w32-3a8a7393f08be8e93a4b5325bb6ccd59d0411750.zip |
Patch by Seth W. Klein, the -l switch was reversed
git-svn-id: svn://busybox.net/trunk/busybox@8609 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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 a9f6c28ba..7984d657a 100644 --- a/coreutils/du.c +++ b/coreutils/du.c | |||
@@ -56,7 +56,7 @@ static unsigned int disp_k; /* bss inits to 0 */ | |||
56 | #endif | 56 | #endif |
57 | 57 | ||
58 | static int max_print_depth = INT_MAX; | 58 | static int max_print_depth = INT_MAX; |
59 | static int count_hardlinks = INT_MAX; | 59 | static int count_hardlinks = 1; |
60 | 60 | ||
61 | static int status | 61 | static int status |
62 | #if EXIT_SUCCESS == 0 | 62 | #if EXIT_SUCCESS == 0 |
@@ -234,7 +234,7 @@ int du_main(int argc, char **argv) | |||
234 | } | 234 | } |
235 | if((opt & (1 << 7))) { | 235 | if((opt & (1 << 7))) { |
236 | /* -l opt */ | 236 | /* -l opt */ |
237 | count_hardlinks = 1; | 237 | count_hardlinks = INT_MAX; |
238 | } | 238 | } |
239 | print_final_total = opt & (1 << 8); /* -c opt */ | 239 | print_final_total = opt & (1 << 8); /* -c opt */ |
240 | 240 | ||