1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/chinese/celvis/files/patch-af
1996-09-23 01:50:33 +00:00

29 lines
863 B
Plaintext

--- tmp.c.orig Thu Aug 15 04:45:57 1996
+++ tmp.c Thu Aug 15 05:14:50 1996
@@ -21,6 +21,7 @@
/* The FAIL() macro prints an error message and then exits. */
#define FAIL(why,arg) mode = MODE_EX; msg(why, arg); endwin(); HZ_abort(9)
+#define FAIL2(why,arg1,arg2) mode = MODE_EX; msg(why, arg1, arg2); endwin(); HZ_abort(9)
/* This is the name of the temp file */
static char tmpname[80];
@@ -91,7 +92,7 @@
if (*o_readonly || (statb.st_mode & S_IJRON))
#endif
#if OS9
- if we don't have write permission...
+ /* if we don't have write permission... */
#endif
#if ANY_UNIX
if (*o_readonly || !(statb.st_mode &
@@ -149,7 +150,7 @@
tmpfd = open(tmpname, O_RDWR | O_BINARY);
if (tmpfd < 0)
{
- FAIL("Can't create temporary file, errno=%d", errno);
+ FAIL2("Can't create temporary file (%s), errno=%d", tmpname, errno);
return 1;
}