From 9100327092c470c2e5b5819087c8094822a1c751 Mon Sep 17 00:00:00 2001 From: Ingo Franzki Date: Mon, 5 Nov 2018 17:12:04 +0100 Subject: [PATCH] zkey: Include /sbin into PATH when executing commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Jan Höppner --- zkey/keystore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zkey/keystore.c b/zkey/keystore.c index 666e3606..928b1518 100644 --- a/zkey/keystore.c +++ b/zkey/keystore.c @@ -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;