don't have double slashes, for emacs
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 22 Aug 1989 08:34:32 +0000 (00:34 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 22 Aug 1989 08:34:32 +0000 (00:34 -0800)
SCCS-vsn: usr.bin/mail/quit.c 5.13
SCCS-vsn: usr.bin/mail/temp.c 5.13

usr/src/usr.bin/mail/quit.c
usr/src/usr.bin/mail/temp.c

index 382a53f..a4ad70e 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)quit.c     5.12 (Berkeley) %G%";
+static char sccsid[] = "@(#)quit.c     5.13 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "rcv.h"
 #endif /* not lint */
 
 #include "rcv.h"
@@ -400,7 +400,7 @@ edstop()
        ibuf = NULL;
        if (stat(mailname, &statb) >= 0 && statb.st_size > mailsize) {
                strcpy(tempname, _PATH_TMP);
        ibuf = NULL;
        if (stat(mailname, &statb) >= 0 && statb.st_size > mailsize) {
                strcpy(tempname, _PATH_TMP);
-               strcat(tempname, "/mboxXXXXXX");
+               strcat(tempname, "mboxXXXXXX");
                mktemp(tempname);
                if ((obuf = fopen(tempname, "w")) == NULL) {
                        perror(tempname);
                mktemp(tempname);
                if ((obuf = fopen(tempname, "w")) == NULL) {
                        perror(tempname);
index a5c7e90..e864a61 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)temp.c     5.12 (Berkeley) %G%";
+static char sccsid[] = "@(#)temp.c     5.13 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "rcv.h"
 #endif /* not lint */
 
 #include "rcv.h"
@@ -39,17 +39,17 @@ tinit()
        register char *cp;
 
        strcpy(tempMail, _PATH_TMP);
        register char *cp;
 
        strcpy(tempMail, _PATH_TMP);
-       mktemp(strcat(tempMail, "/RsXXXXXX"));
+       mktemp(strcat(tempMail, "RsXXXXXX"));
        strcpy(tempResid, _PATH_TMP);
        strcpy(tempResid, _PATH_TMP);
-       mktemp(strcat(tempResid, "/RqXXXXXX"));
+       mktemp(strcat(tempResid, "RqXXXXXX"));
        strcpy(tempQuit, _PATH_TMP);
        strcpy(tempQuit, _PATH_TMP);
-       mktemp(strcat(tempQuit, "/RmXXXXXX"));
+       mktemp(strcat(tempQuit, "RmXXXXXX"));
        strcpy(tempEdit, _PATH_TMP);
        strcpy(tempEdit, _PATH_TMP);
-       mktemp(strcat(tempEdit, "/ReXXXXXX"));
+       mktemp(strcat(tempEdit, "ReXXXXXX"));
        strcpy(tempSet, _PATH_TMP);
        strcpy(tempSet, _PATH_TMP);
-       mktemp(strcat(tempSet, "/RxXXXXXX"));
+       mktemp(strcat(tempSet, "RxXXXXXX"));
        strcpy(tempMesg, _PATH_TMP);
        strcpy(tempMesg, _PATH_TMP);
-       mktemp(strcat(tempMesg, "/RxXXXXXX"));
+       mktemp(strcat(tempMesg, "RxXXXXXX"));
 
        /*
         * It's okay to call savestr in here because main will
 
        /*
         * It's okay to call savestr in here because main will