summaryrefslogtreecommitdiff
path: root/usr.bin/mail
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-16 02:26:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-16 02:26:21 +0000
commit1ba211e9e7ab7bc9fa7df3a53c21fabf4cefb8cd (patch)
tree987a6ed960da085fa3c6fe8cdf8d6302efb8b4e6 /usr.bin/mail
parent4f9ed018c2821547c76751bc31486972cf13f8a7 (diff)
_PATH_TMP -> _PATH_TMPFILE; avoid /tmp//fooXXXX where possible too
Diffstat (limited to 'usr.bin/mail')
-rw-r--r--usr.bin/mail/main.c5
-rw-r--r--usr.bin/mail/temp.c14
2 files changed, 10 insertions, 9 deletions
diff --git a/usr.bin/mail/main.c b/usr.bin/mail/main.c
index 1e312217555..4ea11afbc50 100644
--- a/usr.bin/mail/main.c
+++ b/usr.bin/mail/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.2 1996/06/11 12:53:45 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.3 1996/09/16 02:26:09 deraadt Exp $ */
/* $NetBSD: main.c,v 1.5 1996/06/08 19:48:31 christos Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.2 1996/06/11 12:53:45 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.3 1996/09/16 02:26:09 deraadt Exp $";
#endif
#endif /* not lint */
@@ -113,6 +113,7 @@ main(argc, argv)
/*
* Next argument is person to pretend to be.
*/
+ unsetenv("MAIL");
myname = optarg;
break;
case 'i':
diff --git a/usr.bin/mail/temp.c b/usr.bin/mail/temp.c
index 90373e0b091..53b3eb1d911 100644
--- a/usr.bin/mail/temp.c
+++ b/usr.bin/mail/temp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: temp.c,v 1.2 1996/06/11 12:53:51 deraadt Exp $ */
+/* $OpenBSD: temp.c,v 1.3 1996/09/16 02:26:09 deraadt Exp $ */
/* $NetBSD: temp.c,v 1.5 1996/06/08 19:48:42 christos Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)temp.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: temp.c,v 1.2 1996/06/11 12:53:51 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: temp.c,v 1.3 1996/09/16 02:26:09 deraadt Exp $";
#endif
#endif /* not lint */
@@ -68,11 +68,11 @@ tinit()
tmpdir = _PATH_TMP;
}
- tempMail = tempnam (tmpdir, "Rs");
- tempResid = tempnam (tmpdir, "Rq");
- tempQuit = tempnam (tmpdir, "Rm");
- tempEdit = tempnam (tmpdir, "Re");
- tempMesg = tempnam (tmpdir, "Rx");
+ tempMail = tempnam(tmpdir, "Rs");
+ tempResid = tempnam(tmpdir, "Rq");
+ tempQuit = tempnam(tmpdir, "Rm");
+ tempEdit = tempnam(tmpdir, "Re");
+ tempMesg = tempnam(tmpdir, "Rx");
/*
* It's okay to call savestr in here because main will