summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2004-06-03 18:41:59 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2004-06-03 18:41:59 +0000
commita950b5cad37fa75cd09565379c71ca2eb001178e (patch)
tree957750d9534c334f62745fae5253c3f8775eece0
parent5df4c91958f8b229f0b9bc95108d7830d982f967 (diff)
Though crontab files are created mode 0600 we should accept ones that
are mode 0400 too. From Walt Howard.
-rw-r--r--usr.sbin/cron/database.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/cron/database.c b/usr.sbin/cron/database.c
index f4887f546ee..196a48a962e 100644
--- a/usr.sbin/cron/database.c
+++ b/usr.sbin/cron/database.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: database.c,v 1.13 2003/03/15 00:39:01 millert Exp $ */
+/* $OpenBSD: database.c,v 1.14 2004/06/03 18:41:58 millert Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* All rights reserved
@@ -22,7 +22,7 @@
*/
#if !defined(lint) && !defined(LINT)
-static char const rcsid[] = "$OpenBSD: database.c,v 1.13 2003/03/15 00:39:01 millert Exp $";
+static char const rcsid[] = "$OpenBSD: database.c,v 1.14 2004/06/03 18:41:58 millert Exp $";
#endif
/* vix 26jan87 [RCS has the log]
@@ -208,7 +208,7 @@ process_crontab(const char *uname, const char *fname, const char *tabname,
log_it(fname, getpid(), "NOT REGULAR", tabname);
goto next_crontab;
}
- if ((statbuf->st_mode & 07777) != 0600) {
+ if ((statbuf->st_mode & 07577) != 0400) {
log_it(fname, getpid(), "BAD FILE MODE", tabname);
goto next_crontab;
}