From: Sylvestre Ledru Date: Mon, 30 Dec 2024 09:41:23 +0000 (+0100) Subject: tests: improve the chmod/symlinks.sh test X-Git-Tag: v9.6~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff55921c43c2db43b083a1ea733d1623f91d2303;p=thirdparty%2Fcoreutils.git tests: improve the chmod/symlinks.sh test The variable of the loop isn't passed to the command making it less interesting * tests/chmod/symlinks.sh: Fix the test case. --- diff --git a/tests/chmod/symlinks.sh b/tests/chmod/symlinks.sh index 0317cc360b..c2463fd4f5 100755 --- a/tests/chmod/symlinks.sh +++ b/tests/chmod/symlinks.sh @@ -77,7 +77,7 @@ count_755 0 # Dangling links should not induce an error if not dereferencing for noderef in '-h' '-RP' '-P'; do - chmod 755 --no-dereference a/dangle 2>err || fail=1 + chmod 755 --no-dereference $noderef a/dangle 2>err || fail=1 done # Dangling links should induce an error if dereferencing for deref in '' '--deref' '-R'; do