From cc28d8473eccd679bf3bc0097bc766c2dbd2ff0b Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Tue, 22 Aug 1989 00:34:32 -0800 Subject: [PATCH 1/1] don't have double slashes, for emacs 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 | 4 ++-- usr/src/usr.bin/mail/temp.c | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/usr/src/usr.bin/mail/quit.c b/usr/src/usr.bin/mail/quit.c index 382a53f196..a4ad70e031 100644 --- a/usr/src/usr.bin/mail/quit.c +++ b/usr/src/usr.bin/mail/quit.c @@ -16,7 +16,7 @@ */ #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" @@ -400,7 +400,7 @@ edstop() 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); diff --git a/usr/src/usr.bin/mail/temp.c b/usr/src/usr.bin/mail/temp.c index a5c7e90e8b..e864a61a31 100644 --- a/usr/src/usr.bin/mail/temp.c +++ b/usr/src/usr.bin/mail/temp.c @@ -16,7 +16,7 @@ */ #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" @@ -39,17 +39,17 @@ tinit() register char *cp; strcpy(tempMail, _PATH_TMP); - mktemp(strcat(tempMail, "/RsXXXXXX")); + mktemp(strcat(tempMail, "RsXXXXXX")); strcpy(tempResid, _PATH_TMP); - mktemp(strcat(tempResid, "/RqXXXXXX")); + mktemp(strcat(tempResid, "RqXXXXXX")); strcpy(tempQuit, _PATH_TMP); - mktemp(strcat(tempQuit, "/RmXXXXXX")); + mktemp(strcat(tempQuit, "RmXXXXXX")); strcpy(tempEdit, _PATH_TMP); - mktemp(strcat(tempEdit, "/ReXXXXXX")); + mktemp(strcat(tempEdit, "ReXXXXXX")); strcpy(tempSet, _PATH_TMP); - mktemp(strcat(tempSet, "/RxXXXXXX")); + mktemp(strcat(tempSet, "RxXXXXXX")); strcpy(tempMesg, _PATH_TMP); - mktemp(strcat(tempMesg, "/RxXXXXXX")); + mktemp(strcat(tempMesg, "RxXXXXXX")); /* * It's okay to call savestr in here because main will -- 2.20.1