From: Jim Meyering Date: Sat, 18 Jun 1994 21:04:00 +0000 (+0000) Subject: (count_entry): Print "/" instead of "". X-Git-Tag: textutils-1_12_1~685 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3ad002027a1de82ce7501cdfd9bebbc375911a1;p=thirdparty%2Fcoreutils.git (count_entry): Print "/" instead of "". --- diff --git a/src/du.c b/src/du.c index 70e4b7af7f..7809781339 100644 --- a/src/du.c +++ b/src/du.c @@ -473,7 +473,7 @@ count_entry (ent, top, last_dev) { printf ("%ld\t%s\n", output_size == size_bytes ? size : convert_blocks (size, output_size == size_kilobytes), - path->text); + path->length > 0 ? path->text : "/"); fflush (stdout); } return opt_separate_dirs ? 0 : size;