]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fix test for symlink
authorPádraig Brady <P@draigBrady.com>
Mon, 10 Feb 2020 15:05:43 +0000 (15:05 +0000)
committerPádraig Brady <P@draigBrady.com>
Mon, 10 Feb 2020 15:06:21 +0000 (15:06 +0000)
* tests/cp/preserve-gid.sh: s/-l/-L/.
Reported by Kamil Dudka

tests/cp/preserve-gid.sh

index bba09df098ff44616536891f97b8fa0bd5da90e1..547bf66bc5d38bd04f7fa9d9d5c71808594ae7da 100755 (executable)
@@ -111,7 +111,7 @@ cleanup_() { rm -rf "$tmp_path"; }
 test -d /tmp && TMPDIR=/tmp
 tmp_path=$(mktemp -d) || fail_ "failed to create temporary directory"
 if test -x "$abs_path_dir_/coreutils" &&
-   { test -l "$abs_path_dir_/cp" ||
+   { test -L "$abs_path_dir_/cp" ||
      test $(wc -l < "$abs_path_dir_/cp") = 1; } then
   # if configured with --enable-single-binary we need to use the single binary
   cp "$abs_path_dir_/coreutils" "$tmp_path/cp" || framework_failure_