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:
Ingo Franzki
2018-11-05 17:12:04 +01:00
committed by Jan Höppner
parent e2d433bb10
commit 9100327092

View File

@@ -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;