summaryrefslogtreecommitdiff
path: root/usr.bin/mail/temp.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2016-07-28 21:37:46 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2016-07-28 21:37:46 +0000
commit638c6b4a814ddd465000e469c7e8922b30252568 (patch)
treed0b164484564ec178e3a148fba9740a7efd619f2 /usr.bin/mail/temp.c
parente150ea2180141526391a7cbb9e9bd75b98a2f9ac (diff)
these programs probably do not need to use TMPDIR. ok florian
Diffstat (limited to 'usr.bin/mail/temp.c')
-rw-r--r--usr.bin/mail/temp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/mail/temp.c b/usr.bin/mail/temp.c
index e3c88b2c7d3..0f25855c1c7 100644
--- a/usr.bin/mail/temp.c
+++ b/usr.bin/mail/temp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: temp.c,v 1.16 2015/10/16 17:56:07 mmcc Exp $ */
+/* $OpenBSD: temp.c,v 1.17 2016/07/28 21:37:45 tedu Exp $ */
/* $NetBSD: temp.c,v 1.5 1996/06/08 19:48:42 christos Exp $ */
/*
@@ -46,8 +46,7 @@ tinit(void)
{
char *cp;
- if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0')
- tmpdir = _PATH_TMP;
+ tmpdir = _PATH_TMP;
if ((tmpdir = strdup(tmpdir)) == NULL)
err(1, "strdup");