Alon Bar-Lev has uploaded a new change for review.

Change subject: pki: do not use /dev/fd
......................................................................

pki: do not use /dev/fd

Change-Id: I68d3c04e38d2ee17a6ac72a3050544b14a79c039
Signed-off-by: Alon Bar-Lev <[email protected]>
---
M packaging/bin/pki-pkcs12-extract.sh
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/70/39870/1

diff --git a/packaging/bin/pki-pkcs12-extract.sh 
b/packaging/bin/pki-pkcs12-extract.sh
index ede7a0d..7a86d70 100755
--- a/packaging/bin/pki-pkcs12-extract.sh
+++ b/packaging/bin/pki-pkcs12-extract.sh
@@ -14,7 +14,7 @@
        [ -z "${passout}" ] && extra_args="${extra_args} -nodes"
 
        if [ "${key}" = - ]; then
-               key=/dev/fd/1
+               key=/proc/self/fd/1
        else
                touch "${key}"
                chmod go-rwx "${key}" || die "Cannot set key permissions"
@@ -42,7 +42,7 @@
        common_backup "${cert}"
 
        if [ "${cert}" = - ]; then
-               cert=/dev/fd/1
+               key=/proc/self/fd/1
        else
                touch "${cert}"
                chmod a+r "${cert}" || die "Cannot set certificate permissions"


-- 
To view, visit https://gerrit.ovirt.org/39870
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I68d3c04e38d2ee17a6ac72a3050544b14a79c039
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to