mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
7b2ebe8172
Regen patches
16 lines
356 B
C
16 lines
356 B
C
--- rec.c.orig 1996-03-07 17:34:43 UTC
|
|
+++ rec.c
|
|
@@ -55,8 +55,12 @@ recinit()
|
|
#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*/
|