Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/lpr/lpr PR/46500 - Henning Petersen -- wrong permis...
details: https://anonhg.NetBSD.org/src/rev/8edc1125ec02
branches: trunk
changeset: 779529:8edc1125ec02
user: jnemeth <jnemeth%NetBSD.org@localhost>
date: Sat Jun 02 03:32:53 2012 +0000
description:
PR/46500 - Henning Petersen -- wrong permissions on create .seq files
diffstat:
usr.sbin/lpr/lpr/lpr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d4b860c86360 -r 8edc1125ec02 usr.sbin/lpr/lpr/lpr.c
--- a/usr.sbin/lpr/lpr/lpr.c Fri Jun 01 21:59:06 2012 +0000
+++ b/usr.sbin/lpr/lpr/lpr.c Sat Jun 02 03:32:53 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lpr.c,v 1.45 2011/08/30 19:27:37 joerg Exp $ */
+/* $NetBSD: lpr.c,v 1.46 2012/06/02 03:32:53 jnemeth Exp $ */
/*
* Copyright (c) 1983, 1989, 1993
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)lpr.c 8.4 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: lpr.c,v 1.45 2011/08/30 19:27:37 joerg Exp $");
+__RCSID("$NetBSD: lpr.c,v 1.46 2012/06/02 03:32:53 jnemeth Exp $");
#endif
#endif /* not lint */
@@ -698,7 +698,7 @@
(void)snprintf(buf, sizeof(buf), "%s/.seq", SD);
seteuid(euid);
- if ((fd = open(buf, O_RDWR|O_CREAT, 0661)) < 0)
+ if ((fd = open(buf, O_RDWR|O_CREAT, 0664)) < 0)
err(1, "cannot create %s", buf);
if (flock(fd, LOCK_EX))
err(1, "cannot lock %s", buf);
Home |
Main Index |
Thread Index |
Old Index