diff options
-rw-r--r-- | usr.sbin/kldxref/kldxref.c | 2 |
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+")); } |