diff options
author | Jim Meyering <jim@meyering.net> | 2002-11-24 16:25:26 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-11-24 16:25:26 +0000 |
commit | ce2fb082589a9824768075d863e7df30e889c9e0 (patch) | |
tree | ae56e9d049f11451cd459641cf7c9ad44360e03d | |
parent | 4b8fa5d8ad97056eb4e5ec4c60ba223520570e0a (diff) | |
download | coreutils-ce2fb082589a9824768075d863e7df30e889c9e0.tar.xz |
More clean-up, not that / means /.
-rw-r--r-- | src/du.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -505,11 +505,12 @@ count_entry (const char *ent, int top, dev_t last_dev, int depth) } free (name_space); - pop_dir (cwd, path->text); str_trunc (path, prev_len); /* Remove any "/" we added. */ + pop_dir (cwd, path->text); + if (depth <= max_depth || top) - print_size (size, path->length > 0 ? path->text : "/"); + print_size (size, path->text); return opt_separate_dirs ? 0 : size; } else if ((opt_all && depth <= max_depth) || top) @@ -517,7 +518,7 @@ count_entry (const char *ent, int top, dev_t last_dev, int depth) /* FIXME: make this an option. */ int print_only_dir_size = 0; if (!print_only_dir_size) - print_size (size, path->length > 0 ? path->text : "/"); + print_size (size, path->text); } return size; |