20 lines
439 B
Plaintext
20 lines
439 B
Plaintext
|
--- io.c.~1~ Thu Mar 7 09:34:42 1996
|
||
|
+++ io.c Fri Jul 24 19:17:53 1998
|
||
|
@@ -1193,10 +1193,16 @@
|
||
|
#endif
|
||
|
);
|
||
|
tfname = copystr(buf);
|
||
|
+#if 0
|
||
|
tfname = mktemp(tfname);
|
||
|
+#endif
|
||
|
#ifndef MSFILESYSTEM
|
||
|
+#if 1
|
||
|
+ tmpfd = mkstemp(tfname);
|
||
|
+#else
|
||
|
(void) close(creat(tfname, 0600));
|
||
|
tmpfd = open(tfname, 2);
|
||
|
+#endif
|
||
|
#else /* MSFILESYSTEM */
|
||
|
tmpfd = open(tfname, O_CREAT|O_EXCL|O_BINARY|O_RDWR, S_IWRITE|S_IREAD);
|
||
|
#endif /* MSFILESYSTEM */
|