svn commit: r236663 - stable/9/usr.sbin/lpr/lpr
Eitan Adler
eadler at FreeBSD.org
Wed Jun 6 06:38:56 UTC 2012
Author: eadler
Date: Wed Jun 6 06:38:56 2012
New Revision: 236663
URL: http://svn.freebsd.org/changeset/base/236663
Log:
MFC r236289:
Relax security permissions on '.seq' file creation - the strict,
but odd permissions resulted in a security alert from 110.neggrpperm
PR: bin/165533
Approved by: cperciva (implicit)
Modified:
stable/9/usr.sbin/lpr/lpr/lpr.c
Directory Properties:
stable/9/usr.sbin/lpr/ (props changed)
Modified: stable/9/usr.sbin/lpr/lpr/lpr.c
==============================================================================
--- stable/9/usr.sbin/lpr/lpr/lpr.c Wed Jun 6 06:35:47 2012 (r236662)
+++ stable/9/usr.sbin/lpr/lpr/lpr.c Wed Jun 6 06:38:56 2012 (r236663)
@@ -846,7 +846,7 @@ mktemps(const struct printer *pp)
(void) snprintf(buf, sizeof(buf), "%s/.seq", pp->spool_dir);
seteuid(euid);
- if ((fd = open(buf, O_RDWR|O_CREAT, 0661)) < 0) {
+ if ((fd = open(buf, O_RDWR|O_CREAT, 0664)) < 0) {
printf("%s: cannot create %s\n", progname, buf);
exit(1);
}
More information about the svn-src-stable
mailing list