17 lines
428 B
Plaintext
17 lines
428 B
Plaintext
$OpenBSD: patch-rec_c,v 1.1 2006/04/09 10:10:25 alek Exp $
|
|
--- rec.c.orig Thu Mar 7 18:34:43 1996
|
|
+++ rec.c Sun Apr 9 12:05:56 2006
|
|
@@ -55,8 +55,12 @@ recinit()
|
|
#endif
|
|
);
|
|
recfname = copystr(buf);
|
|
+#if 1
|
|
+ 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*/
|