Patch by Seth W. Klein, the -l switch was reversed
This commit is contained in:
parent
7d0c51919c
commit
44c0e17dbe
@ -56,7 +56,7 @@ static unsigned int disp_k; /* bss inits to 0 */
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int max_print_depth = INT_MAX;
|
static int max_print_depth = INT_MAX;
|
||||||
static int count_hardlinks = INT_MAX;
|
static int count_hardlinks = 1;
|
||||||
|
|
||||||
static int status
|
static int status
|
||||||
#if EXIT_SUCCESS == 0
|
#if EXIT_SUCCESS == 0
|
||||||
@ -234,7 +234,7 @@ int du_main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
if((opt & (1 << 7))) {
|
if((opt & (1 << 7))) {
|
||||||
/* -l opt */
|
/* -l opt */
|
||||||
count_hardlinks = 1;
|
count_hardlinks = INT_MAX;
|
||||||
}
|
}
|
||||||
print_final_total = opt & (1 << 8); /* -c opt */
|
print_final_total = opt & (1 << 8); /* -c opt */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user