summaryrefslogtreecommitdiffstats
path: root/usr.bin/mail/edit.c
diff options
context:
space:
mode:
authormartynas <martynas@openbsd.org>2008-07-16 14:49:09 +0000
committermartynas <martynas@openbsd.org>2008-07-16 14:49:09 +0000
commit64d7140c5e81454f2282b11f73906bf3c15d4ae5 (patch)
treef499e18728cd8c87fa879693741932f6448d38d7 /usr.bin/mail/edit.c
parentfix nat lookup to use the correct pf_addr offset. now it also works (diff)
downloadwireguard-openbsd-64d7140c5e81454f2282b11f73906bf3c15d4ae5.tar.xz
wireguard-openbsd-64d7140c5e81454f2282b11f73906bf3c15d4ae5.zip
- err with the pathbuf, if we know it
- use tmpdir instead of /tmp ok millert@
Diffstat (limited to 'usr.bin/mail/edit.c')
-rw-r--r--usr.bin/mail/edit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mail/edit.c b/usr.bin/mail/edit.c
index 47adbc2b3ed..5988db07729 100644
--- a/usr.bin/mail/edit.c
+++ b/usr.bin/mail/edit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: edit.c,v 1.17 2007/10/17 20:02:33 deraadt Exp $ */
+/* $OpenBSD: edit.c,v 1.18 2008/07/16 14:49:09 martynas Exp $ */
/* $NetBSD: edit.c,v 1.5 1996/06/08 19:48:20 christos Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static const char sccsid[] = "@(#)edit.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$OpenBSD: edit.c,v 1.17 2007/10/17 20:02:33 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: edit.c,v 1.18 2008/07/16 14:49:09 martynas Exp $";
#endif
#endif /* not lint */
@@ -129,7 +129,7 @@ edit1(int *msgvec, int type)
break;
}
if (ferror(otf))
- warn("/tmp");
+ warn("%s", tmpdir);
(void)Fclose(fp);
}
(void)sigprocmask(SIG_SETMASK, &oset, NULL);