Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/external/bsd/cron/dist Pull up following revision(s) (req...
details: https://anonhg.NetBSD.org/src/rev/df3136be7588
branches: netbsd-6
changeset: 777248:df3136be7588
user: martin <martin%NetBSD.org@localhost>
date: Thu Aug 31 15:14:56 2017 +0000
description:
Pull up following revision(s) (requested by ginsbach in ticket #1498):
external/bsd/cron/dist/database.c: revision 1.8
PR/47362: Brian Marcotte: cron is too restrictive on file permissions
Allow file being writable by owner.
XXX: pullup to 6.
diffstat:
external/bsd/cron/dist/database.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 12fbe25f44bb -r df3136be7588 external/bsd/cron/dist/database.c
--- a/external/bsd/cron/dist/database.c Thu Aug 31 15:10:29 2017 +0000
+++ b/external/bsd/cron/dist/database.c Thu Aug 31 15:14:56 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: database.c,v 1.7 2011/10/14 14:38:20 christos Exp $ */
+/* $NetBSD: database.c,v 1.7.4.1 2017/08/31 15:14:56 martin Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* All rights reserved
@@ -25,7 +25,7 @@
#if 0
static char rcsid[] = "Id: database.c,v 1.7 2004/01/23 18:56:42 vixie Exp";
#else
-__RCSID("$NetBSD: database.c,v 1.7 2011/10/14 14:38:20 christos Exp $");
+__RCSID("$NetBSD: database.c,v 1.7.4.1 2017/08/31 15:14:56 martin Exp $");
#endif
#endif
@@ -237,7 +237,7 @@
{
struct passwd *pw = NULL;
int crontab_fd = OK - 1;
- mode_t eqmode = 0600, badmode = 0;
+ mode_t eqmode = 0400, badmode = 0;
user *u;
if (fname == NULL) {
@@ -272,7 +272,7 @@
log_it(fname, getpid(), "NOT REGULAR", tabname);
goto next_crontab;
}
- if ((eqmode && (statbuf->st_mode & 07777) != eqmode) ||
+ if ((eqmode && (statbuf->st_mode & 07577) != eqmode) ||
(badmode && (statbuf->st_mode & badmode) != 0)) {
log_it(fname, getpid(), "BAD FILE MODE", tabname);
goto next_crontab;
Home |
Main Index |
Thread Index |
Old Index