svn commit: r185475 - head/usr.sbin/kldxref

Luigi Rizzo luigi at FreeBSD.org
Sun Nov 30 06:20:10 PST 2008


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


More information about the svn-src-all mailing list