From 6c83ef3f40b87bdbbec0603db4f1625e5ce91151 Mon Sep 17 00:00:00 2001 From: vxtls <187420201+vxtls@users.noreply.github.com> Date: Wed, 18 Mar 2026 18:41:32 -0400 Subject: [PATCH] fix(tar-1.30): use execvp(sh, argv) in system.c for /bin/sh-less Guix environments --- steps-guix/tar-1.30/patches/use-execvp-sh.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 steps-guix/tar-1.30/patches/use-execvp-sh.patch diff --git a/steps-guix/tar-1.30/patches/use-execvp-sh.patch b/steps-guix/tar-1.30/patches/use-execvp-sh.patch new file mode 100644 index 00000000..066d880a --- /dev/null +++ b/steps-guix/tar-1.30/patches/use-execvp-sh.patch @@ -0,0 +1,15 @@ +SPDX-License-Identifier: GPL-3.0-or-later + +Use execvp("sh", ...) in xexec so tar works when /bin/sh is absent. + +--- tar-1.30/src/system.c ++++ tar-1.30/src/system.c +@@ -34,7 +34,7 @@ + argv[2] = (char *) cmd; + argv[3] = NULL; + +- execv ("/bin/sh", argv); ++ execvp ("sh", argv); + exec_fatal (cmd); + } +