bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#39485: [PATCH] make tests/cp/preserve-gid work with single binary


From: Pádraig Brady
Subject: bug#39485: [PATCH] make tests/cp/preserve-gid work with single binary
Date: Mon, 10 Feb 2020 15:07:57 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:73.0) Gecko/20100101 Thunderbird/73.0

On 10/02/2020 14:36, Kamil Dudka wrote:
On Saturday, February 8, 2020 12:53:52 PM CET Pádraig Brady wrote:

+if test -x "$abs_path_dir_/coreutils" &&
+   { test -l "$abs_path_dir_/cp" ||

This should be spelled `test -L` I guess.

+     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"
-  echo "#!$tmp_path/coreutils --coreutils-prog-shebang=cp" > "$tmp_path/cp"
+  cp "$abs_path_dir_/coreutils" "$tmp_path/cp" || framework_failure_ else
     cp "$abs_path_dir_/cp" "$tmp_path"
   fi

Otherwise looks good.  Thank you for fixing it!

fixed, cheers





reply via email to

[Prev in Thread] Current Thread [Next in Thread]