summaryrefslogtreecommitdiff
path: root/usr.bin/mail
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
parente150ea2180141526391a7cbb9e9bd75b98a2f9ac (diff)
these programs probably do not need to use TMPDIR. ok florian
Diffstat (limited to 'usr.bin/mail')
-rw-r--r--usr.bin/mail/mail.16
-rw-r--r--usr.bin/mail/temp.c5
2 files changed, 4 insertions, 7 deletions
diff --git a/usr.bin/mail/mail.1 b/usr.bin/mail/mail.1
index f19780b4e9d..ffc3f1689a7 100644
--- a/usr.bin/mail/mail.1
+++ b/usr.bin/mail/mail.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mail.1,v 1.75 2015/09/07 15:28:06 sobrado Exp $
+.\" $OpenBSD: mail.1,v 1.76 2016/07/28 21:37:45 tedu Exp $
.\"
.\" Copyright (c) 1980, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -29,7 +29,7 @@
.\"
.\" @(#)mail.1 8.8 (Berkeley) 4/28/95
.\"
-.Dd $Mdocdate: September 7 2015 $
+.Dd $Mdocdate: July 28 2016 $
.Dt MAIL 1
.Os
.Sh NAME
@@ -1139,8 +1139,6 @@ command and the
escape.
A default shell is used if this option is
not defined.
-.It Ev TMPDIR
-Directory in which temporary files are stored.
.It Ev VISUAL
Pathname of the text editor to use in the
.Ic visual
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");