From 3a8a7393f08be8e93a4b5325bb6ccd59d0411750 Mon Sep 17 00:00:00 2001 From: bug1 Date: Wed, 10 Mar 2004 09:10:53 +0000 Subject: Patch by Seth W. Klein, the -l switch was reversed git-svn-id: svn://busybox.net/trunk/busybox@8609 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- coreutils/du.c | 4 ++-- 1 file 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 */ #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 */ -- cgit v1.2.3-55-g6feb