mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 11:36:32 +01:00
fix(tar-1.30): use execvp(sh, argv) in system.c for /bin/sh-less Guix environments
This commit is contained in:
parent
358317615a
commit
6c83ef3f40
1 changed files with 15 additions and 0 deletions
15
steps-guix/tar-1.30/patches/use-execvp-sh.patch
Normal file
15
steps-guix/tar-1.30/patches/use-execvp-sh.patch
Normal file
|
|
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue