Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170933182
D59424.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D59424.diff
View Options
diff --git a/contrib/bmake/bmake.1 b/contrib/bmake/bmake.1
--- a/contrib/bmake/bmake.1
+++ b/contrib/bmake/bmake.1
@@ -205,7 +205,7 @@
The temporary scripts are created by
.Xr mkstemp 3 ,
and have names of the form
-.Pa makeXXXXXX .
+.Pa make.XXXXXXXXXX .
.Em NOTE :
This can create many files in
.Ev TMPDIR
diff --git a/contrib/bmake/configure b/contrib/bmake/configure
--- a/contrib/bmake/configure
+++ b/contrib/bmake/configure
@@ -8069,7 +8069,7 @@
# Create a (secure) tmp directory for tmp files.
{
- tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
+ tmp=`(umask 077 && mktemp -d "./conf.XXXXXXXXXX") 2>/dev/null` &&
test -d "$tmp"
} ||
{
diff --git a/contrib/bmake/main.c b/contrib/bmake/main.c
--- a/contrib/bmake/main.c
+++ b/contrib/bmake/main.c
@@ -2217,7 +2217,7 @@
int fd;
if (pattern == NULL)
- pattern = "makeXXXXXX";
+ pattern = "make.XXXXXXXXXX";
if (tmpdir == NULL)
tmpdir = getTmpdir();
if (tfile == NULL) {
diff --git a/contrib/bmake/make.1 b/contrib/bmake/make.1
--- a/contrib/bmake/make.1
+++ b/contrib/bmake/make.1
@@ -205,7 +205,7 @@
The temporary scripts are created by
.Xr mkstemp 3 ,
and have names of the form
-.Pa makeXXXXXX .
+.Pa make.XXXXXXXXXX .
.Em NOTE :
This can create many files in
.Ev TMPDIR
diff --git a/contrib/bmake/meta.c b/contrib/bmake/meta.c
--- a/contrib/bmake/meta.c
+++ b/contrib/bmake/meta.c
@@ -148,9 +148,9 @@
* We only care about the descriptor.
*/
if (!opts.compatMake)
- pbm->mon_fd = Job_TempFile("filemon.XXXXXX", NULL, 0);
+ pbm->mon_fd = Job_TempFile("filemon.XXXXXXXXXX", NULL, 0);
else
- pbm->mon_fd = mkTempFile("filemon.XXXXXX", NULL, 0);
+ pbm->mon_fd = mkTempFile("filemon.XXXXXXXXXX", NULL, 0);
if ((dupfd = dup(pbm->mon_fd)) == -1) {
Punt("Could not dup filemon output: %s", strerror(errno));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Sep 8, 5:03 PM (59 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38461010
Default Alt Text
D59424.diff (1 KB)
Attached To
Mode
D59424: bmake: use longer and more unique tempfile names
Attached
Detach File
Event Timeline
Log In to Comment