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+"));
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to