[ovs-dev] [PATCH 04/10] ovs-pki: Workaround lack of /dev/stdin in Windows.

Gurucharan Shetty shettyg at nicira.com
Tue May 13 16:03:18 UTC 2014


This lets us generate certs for unit tests on Windows

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
---
 utilities/ovs-pki.in |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/utilities/ovs-pki.in b/utilities/ovs-pki.in
index 89af405..7f56b4e 100755
--- a/utilities/ovs-pki.in
+++ b/utilities/ovs-pki.in
@@ -461,9 +461,10 @@ sign_request() {
     must_not_exist "$2"
     pkidir_must_exist
 
+    request_file="`pwd`/$1"
     (cd "$pkidir/${type}ca" && 
-     openssl ca -config ca.cnf -batch -in /dev/stdin) \
-        < "$1" > "$2.tmp$$" 2>&3
+     openssl ca -config ca.cnf -batch -in "$request_file") \
+        > "$2.tmp$$" 2>&3
     mv "$2.tmp$$" "$2"
 }
 
-- 
1.7.9.5




More information about the dev mailing list