ovs-pki: Handle Windows style path.
authorGurucharan Shetty <gshetty@nicira.com>
Mon, 24 Aug 2015 22:44:20 +0000 (15:44 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Tue, 25 Aug 2015 20:43:24 +0000 (13:43 -0700)
Reported-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
utilities/ovs-pki.in

index 4705178..a96ada3 100755 (executable)
@@ -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"
             ;;
         *)