freebsd-ports/editors/jove/files/patch-ag
Kevin Lo 641cfa39ea - Support CFLAGS properly
- Support install macros
- mktemp() -> mkstemp()
- Remove unnecessary manpages

PR: 23759
Submitted by: Ports Fury
2000-12-22 16:42:19 +00:00

15 lines
372 B
Text

--- rec.c.orig Fri Mar 8 02:34:43 1996
+++ rec.c Wed Dec 20 05:19:50 2000
@@ -55,8 +55,12 @@
#endif
);
recfname = copystr(buf);
+#ifndef NO_MKSTEMP
+ rec_fd = mkstemp(recfname);
+#else
recfname = mktemp(recfname);
rec_fd = creat(recfname, 0644);
+#endif
if (rec_fd == -1) {
complain("Cannot create \"%s\"; recovery disabled.", recfname);
/*NOTREACHED*/