Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Nov 2008 14:20:08 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r185475 - head/usr.sbin/kldxref
Message-ID:  <200811301420.mAUEK8cP092469@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luigi
Date: Sun Nov 30 14:20:08 2008
New Revision: 185475
URL: http://svn.freebsd.org/changeset/base/185475

Log:
  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

Modified:
  head/usr.sbin/kldxref/kldxref.c

Modified: head/usr.sbin/kldxref/kldxref.c
==============================================================================
--- head/usr.sbin/kldxref/kldxref.c	Sun Nov 30 13:18:35 2008	(r185474)
+++ head/usr.sbin/kldxref/kldxref.c	Sun Nov 30 14:20:08 2008	(r185475)
@@ -266,6 +266,8 @@ maketempfile(char *dest, const char *roo
 		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+"));
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811301420.mAUEK8cP092469>