mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zkey: Include /sbin into PATH when executing commands
When using 'zkey cryptsetup' with the '--run' option, it might not find the executable to execute when those are in /sbin. Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
e2d433bb10
commit
9100327092
@@ -3235,7 +3235,7 @@ static int _keystore_execute_cmd(const char *cmd,
|
||||
{
|
||||
int rc;
|
||||
|
||||
rc = setenv("PATH", "/bin:/usr/bin:/usr/sbin", 1);
|
||||
rc = setenv("PATH", "/bin:/sbin:/usr/bin:/usr/sbin", 1);
|
||||
if (rc < 0)
|
||||
return rc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user