diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rwxr-xr-x | tests/du/deref-args | 7 |
2 files changed, 9 insertions, 1 deletions
@@ -8,6 +8,9 @@ Reported by Jeff Sheinberg as Debian bug #211591; http://bugs.debian.org/205251 + * tests/du/deref-args: New file/test for the above. + * tests/du/Makefile.am (TESTS): Add deref-args. + * src/du.c (process_file): Remove useless disjunct. * src/sys2.h (case_GETOPT_VERSION_CHAR): Rename parameter, Authors, diff --git a/tests/du/deref-args b/tests/du/deref-args index c3cbaed9d..4b6588ef2 100755 --- a/tests/du/deref-args +++ b/tests/du/deref-args @@ -15,7 +15,7 @@ trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 mkdir -p $tmp || framework_failure=1 cd $tmp || framework_failure=1 -mkdir -p dir/a/b +mkdir -p dir/a ln -s dir slink if test $framework_failure = 1; then @@ -26,8 +26,13 @@ fi fail=0 du -D slink | sed 's/^[0-9][0-9]* //' > out +# Ensure that the trailing slash is preserved and handled properly. +du -D slink/ | sed 's/^[0-9][0-9]* //' >> out cat <<\EOF > exp +slink/a slink +slink/a +slink/ EOF cmp out exp || fail=1 |