[ovs-dev] [PATCH] ovs-pki: Handle Windows style path.

Gurucharan Shetty shettyg at nicira.com
Mon Aug 24 22:45:13 UTC 2015


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

diff --git a/utilities/ovs-pki.in b/utilities/ovs-pki.in
index 4705178..a96ada3 100755
--- a/utilities/ovs-pki.in
+++ b/utilities/ovs-pki.in
@@ -195,7 +195,7 @@ if test -z "$dsaparam"; then
     dsaparam=$pkidir/dsaparam.pem
 fi
 case $log in
-    /*) ;;
+    /* | ?:[\\/]*) ;;
     *) log=`pwd`/$log ;;
 esac
 
@@ -462,7 +462,7 @@ sign_request() {
     pkidir_must_exist
 
     case "$1" in
-        "/"*)
+        /* | ?:[\\/]*)
             request_file="$1"
             ;;
         *)
-- 
1.7.9.5




More information about the dev mailing list