]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(count_entry): Print "/" instead of "".
authorJim Meyering <jim@meyering.net>
Sat, 18 Jun 1994 21:04:00 +0000 (21:04 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 18 Jun 1994 21:04:00 +0000 (21:04 +0000)
src/du.c

index 70e4b7af7f10ec48c4ec1df60bdc2e60f1c3b65b..7809781339c61fccc876cc4381c1a41ec9b90980 100644 (file)
--- 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;