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:
Luigi Rizzo 2008-11-30 14:20:08 +00:00
parent 0886d6e46b
commit ddce581880

View File

@ -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+"));
}