summaryrefslogtreecommitdiffstats
path: root/usr.sbin/kldxref
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2008-11-30 14:20:08 +0000
committerluigi <luigi@FreeBSD.org>2008-11-30 14:20:08 +0000
commitd3ad4d216f8f1e1649defe5a762f08d3292c74ac (patch)
tree537ecb9200883f8a442f1e0566f973a1840eac48 /usr.sbin/kldxref
parent0ad3ee03806e21a1a702bd108e68dff1c4f34afd (diff)
downloadFreeBSD-src-d3ad4d216f8f1e1649defe5a762f08d3292c74ac.zip
FreeBSD-src-d3ad4d216f8f1e1649defe5a762f08d3292c74ac.tar.gz
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
Diffstat (limited to 'usr.sbin/kldxref')
-rw-r--r--usr.sbin/kldxref/kldxref.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/kldxref/kldxref.c b/usr.sbin/kldxref/kldxref.c
index a7c0654..3ad0bd8 100644
--- a/usr.sbin/kldxref/kldxref.c
+++ b/usr.sbin/kldxref/kldxref.c
@@ -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+"));
}
OpenPOWER on IntegriCloud