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 02682e424ab731dfb37c7e7284b5fb9dd28e1054..69b7bb3fd8b8cf2fba12f4b942f09b15a95e2be0 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