aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/lpr
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2012-05-30 04:08:29 +0000
committerEitan Adler <eadler@FreeBSD.org>2012-05-30 04:08:29 +0000
commit31fd5c11017c616b7af668124d1c0dcacba7e013 (patch)
tree25750fbcb0bbf58b71bcbb3d4e25c864bebbc82f /usr.sbin/lpr
parente5d9109aabc163148fe4cf07f9d36aff9b067fb6 (diff)
downloadsrc-31fd5c11017c616b7af668124d1c0dcacba7e013.tar.gz
src-31fd5c11017c616b7af668124d1c0dcacba7e013.zip
Relax security permissions on '.seq' file creation - the strict,
but odd permissions resulted in a security alert from 110.neggrpperm PR: kern/165533 Submitted by: Anton Shterenlikht <mexas@bristol.ac.uk> Submitted by: J B <jb.1234abcd@gmail.com> Approved by: cperciva MFC after: 1 week
Notes
Notes: svn path=/head/; revision=236289
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r--usr.sbin/lpr/lpr/lpr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpr/lpr.c b/usr.sbin/lpr/lpr/lpr.c
index c2f88a07af6a..9ae72f6110cc 100644
--- a/usr.sbin/lpr/lpr/lpr.c
+++ b/usr.sbin/lpr/lpr/lpr.c
@@ -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);
}