Patch by Seth W. Klein, the -l switch was reversed
authorGlenn L McGrath <bug1@ihug.co.nz>
Wed, 10 Mar 2004 09:10:53 +0000 (09:10 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Wed, 10 Mar 2004 09:10:53 +0000 (09:10 -0000)
coreutils/du.c

index a9f6c28..7984d65 100644 (file)
@@ -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 */