svn commit: r218986 - head/etc/rc.d

Doug Barton dougb at FreeBSD.org
Thu Feb 24 06:28:49 UTC 2011


Author: dougb
Date: Thu Feb 24 06:28:48 2011
New Revision: 218986
URL: http://svn.freebsd.org/changeset/base/218986

Log:
  The new accounting file needs to be 644 so that unprivileged users
  can use lastcomm(1)

Modified:
  head/etc/rc.d/accounting

Modified: head/etc/rc.d/accounting
==============================================================================
--- head/etc/rc.d/accounting	Wed Feb 23 21:45:28 2011	(r218985)
+++ head/etc/rc.d/accounting	Thu Feb 24 06:28:48 2011	(r218986)
@@ -58,6 +58,7 @@ accounting_rotate_log()
 
 	if checkyesno accounting_enable; then
 		_file=`mktemp newacct-XXXXX`
+		chmod 644 $_file
 		${accounting_command} ${_dir}/${_file}
 	fi
 


More information about the svn-src-all mailing list