SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
16
misc/xtar/patches/patch-common_tmpfile_c
Normal file
16
misc/xtar/patches/patch-common_tmpfile_c
Normal file
|
@ -0,0 +1,16 @@
|
|||
--- common/tmpfile.c.orig Tue May 9 10:06:46 1995
|
||||
+++ common/tmpfile.c Fri Oct 26 23:58:56 2007
|
||||
@@ -90,7 +90,12 @@ void tmpfile_free()
|
||||
char *tmpfile_create()
|
||||
{
|
||||
TMP_FILE *ptr, *tf;
|
||||
- char *filename = strdup(tmpnam(NULL));
|
||||
+ char xxx[40];
|
||||
+ char *filename;
|
||||
+
|
||||
+ sprintf(xxx, "/tmp/tmpf.XXXXXXXX");
|
||||
+ close(mkstemp(xxx));
|
||||
+ filename = strdup(xxx);
|
||||
|
||||
if(filename == NULL)
|
||||
return(NULL);
|
Loading…
Add table
Add a link
Reference in a new issue