714bda41fe
- Added the following two patches from IBM (bsc#1121719): * s390-tools-sles15sp1-01-zkey-Include-sbin-into-PATH-when-executing-commands.patch * s390-tools-sles15sp1-zkey-Enhance-error-message-about-missing-CCA-library.patch OBS-URL: https://build.opensuse.org/request/show/666019 OBS-URL: https://build.opensuse.org/package/show/Base:System/s390-tools?expand=0&rev=67
31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
Subject: zkey: Fails to run commands generated by 'zkey cryptsetup'
|
|
From: Ingo Franzki <ifranzki@linux.ibm.com>
|
|
|
|
Description: zkey: Fails to run commands generated by 'zkey cryptsetup'
|
|
Symptom: Fails to run commands generated by 'zkey cryptsetup'.
|
|
Problem: When using 'zkey cryptsetup' with --run option the
|
|
execution of the generated commands may fail, when
|
|
the executable to be run is located in '/sbin'.
|
|
Solution: Include /sbin into PATH when executing commands.
|
|
Reproduction: Use 'zkey cryptsetup' with option --run on a distribution
|
|
where 'cryptsetup' is located in '/sbin'.
|
|
Upstream-ID: -
|
|
Problem-ID: 173155
|
|
|
|
Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
|
|
---
|
|
zkey/keystore.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/zkey/keystore.c
|
|
+++ b/zkey/keystore.c
|
|
@@ -3235,7 +3235,7 @@ static int _keystore_execute_cmd(const c
|
|
{
|
|
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;
|
|
|