summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2008-07-16 14:49:10 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2008-07-16 14:49:10 +0000
commit47142f9c57166d0c21c5dbcfea059877d33d6bbf (patch)
tree7b2c10a797941d9f8c6e3530d6e687aaa17dee66
parentb3af55dda6881ccb86ce94e47f8c149d80dd6917 (diff)
- err with the pathbuf, if we know it
- use tmpdir instead of /tmp ok millert@
-rw-r--r--usr.bin/mail/edit.c6
-rw-r--r--usr.bin/mail/fio.c6
2 files changed, 6 insertions, 6 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);
diff --git a/usr.bin/mail/fio.c b/usr.bin/mail/fio.c
index e621bf953a7..524766e9085 100644
--- a/usr.bin/mail/fio.c
+++ b/usr.bin/mail/fio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fio.c,v 1.30 2007/10/05 14:39:39 chl Exp $ */
+/* $OpenBSD: fio.c,v 1.31 2008/07/16 14:49:09 martynas Exp $ */
/* $NetBSD: fio.c,v 1.8 1997/07/07 22:57:55 phil Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static const char sccsid[] = "@(#)fio.c 8.2 (Berkeley) 4/20/95";
#else
-static const char rcsid[] = "$OpenBSD: fio.c,v 1.30 2007/10/05 14:39:39 chl Exp $";
+static const char rcsid[] = "$OpenBSD: fio.c,v 1.31 2008/07/16 14:49:09 martynas Exp $";
#endif
#endif /* not lint */
@@ -131,7 +131,7 @@ setptr(FILE *ibuf, off_t offset)
(void)fwrite(linebuf, sizeof(*linebuf), count, otf);
if (ferror(otf))
- err(1, "/tmp");
+ err(1, "%s", pathbuf);
if (count && linebuf[count - 1] == '\n')
linebuf[count - 1] = '\0';
if (maybe && linebuf[0] == 'F' && ishead(linebuf)) {