Make the linker.hints file have mode 644 instead of 600.
There is nothing secret in the file, and the missing read permission breaks diskless operation. MFC after: 4 weeks
This commit is contained in:
parent
0886d6e46b
commit
ddce581880
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185475
@ -266,6 +266,8 @@ maketempfile(char *dest, const char *root)
|
||||
p = dest;
|
||||
strcpy(p, "lhint.XXXXXX");
|
||||
fd = mkstemp(dest);
|
||||
if (fd >= 0)
|
||||
fchmod(fd, 0644); /* nothing secret in the file */
|
||||
return ((fd == -1) ? NULL : fdopen(fd, "w+"));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user