No need to look for the file if none was entered.
authorRichard Levitte <levitte@openssl.org>
Tue, 13 Apr 2010 14:39:58 +0000 (14:39 +0000)
committerRichard Levitte <levitte@openssl.org>
Tue, 13 Apr 2010 14:39:58 +0000 (14:39 +0000)
apps/CA.com

index 02682e4..69b7bb3 100644 (file)
@@ -114,8 +114,8 @@ $!
 $   IF F$SEARCH(CATOP+".private"+CAKEY) .EQS. ""
 $   THEN
 $     READ '__INPUT' FILE -
-          /PROMT="CA certificate filename (or enter to create)"
-$     IF F$SEARCH(FILE) .NES. ""
+          /PROMPT="CA certificate filename (or enter to create)"
+$     IF (FILE .NES. "") .AND. (F$SEARCH(FILE) .NES. "")
 $     THEN
 $       COPY 'FILE' 'CATOP'.private'CAKEY'
 $      RET=$STATUS