summaryrefslogtreecommitdiff
path: root/src/du.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-06-18 21:04:00 +0000
committerJim Meyering <jim@meyering.net>1994-06-18 21:04:00 +0000
commita3ad002027a1de82ce7501cdfd9bebbc375911a1 (patch)
treecd3fa7c97af0b0f5059584d086da2c49d29c2b80 /src/du.c
parent33fec6746494d931139cc740808ed652898bda5c (diff)
downloadcoreutils-a3ad002027a1de82ce7501cdfd9bebbc375911a1.tar.xz
(count_entry): Print "/" instead of "".
Diffstat (limited to 'src/du.c')
-rw-r--r--src/du.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/du.c b/src/du.c
index 70e4b7af7..780978133 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;