VMS doesn't support more than on period in a file name
authorRichard Levitte <levitte@openssl.org>
Tue, 22 May 2001 12:48:14 +0000 (12:48 +0000)
committerRichard Levitte <levitte@openssl.org>
Tue, 22 May 2001 12:48:14 +0000 (12:48 +0000)
apps/ca.c

index 2d71104745159c49667d35c023cf98f4a5a422d5..a8bf049079123f0de25fe9e983ba91ea77ca2e68 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -1220,7 +1220,11 @@ bad:
                        X509_free(revcert);
 
                        strncpy(buf[0],dbfile,BSIZE-4);
+#ifndef VMS
                        strcat(buf[0],".new");
+#else
+                       strcat(buf[0],"-new");
+#endif
                        if (BIO_write_filename(out,buf[0]) <= 0)
                                {
                                perror(dbfile);
@@ -1230,7 +1234,11 @@ bad:
                        j=TXT_DB_write(out,db);
                        if (j <= 0) goto err;
                        strncpy(buf[1],dbfile,BSIZE-4);
+#ifndef VMS
                        strcat(buf[1],".old");
+#else
+                       strcat(buf[1],"-old");
+#endif
                        if (rename(dbfile,buf[1]) < 0)
                                {
                                BIO_printf(bio_err,"unable to rename %s to %s\n", dbfile, buf[1]);