diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2016-07-28 21:37:46 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2016-07-28 21:37:46 +0000 |
commit | 638c6b4a814ddd465000e469c7e8922b30252568 (patch) | |
tree | d0b164484564ec178e3a148fba9740a7efd619f2 /usr.bin/mail/temp.c | |
parent | e150ea2180141526391a7cbb9e9bd75b98a2f9ac (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.c | 5 |
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"); |