patches dir with small fixes

This commit is contained in:
joey 1997-12-30 02:08:07 +00:00
parent 2c293491d8
commit 289b8aa7c0
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,20 @@
--- src/callproc.c.orig Mon Dec 29 15:22:23 1997
+++ src/callproc.c Mon Dec 29 15:22:34 1997
@@ -456,7 +456,7 @@
if (*tempfile == '\0' || tempfile[strlen (tempfile) - 1] != '/')
strcat (tempfile, "/");
strcat (tempfile, "detmp.XXX");
- mktemp (tempfile);
+ mkstemp (tempfile);
outfilefd = creat (tempfile, S_IREAD | S_IWRITE);
if (outfilefd < 0)
@@ -811,7 +811,7 @@
XSTRING (Vtemp_file_name_pattern)->size + 1);
#endif /* not DOS_NT */
- mktemp (tempfile);
+ mkstemp (tempfile);
filename_string = build_string (tempfile);
GCPRO1 (filename_string);

View File

@ -0,0 +1,11 @@
--- src/fileio.c.orig Mon Dec 29 15:25:06 1997
+++ src/fileio.c Mon Dec 29 15:25:17 1997
@@ -786,7 +786,7 @@
#else
val = concat2 (prefix, build_string ("XXXXXX"));
#endif
- mktemp (XSTRING (val)->data);
+ mkstemp (XSTRING (val)->data);
#ifdef DOS_NT
CORRECT_DIR_SEPS (XSTRING (val)->data);
#endif