SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View 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);