-/* $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 $ */
/*
#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 */
break;
}
if (ferror(otf))
- warn("/tmp");
+ warn("%s", tmpdir);
(void)Fclose(fp);
}
(void)sigprocmask(SIG_SETMASK, &oset, NULL);
-/* $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 $ */
/*
#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 */
(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)) {