diff options
author | 2004-06-03 18:41:58 +0000 | |
---|---|---|
committer | 2004-06-03 18:41:58 +0000 | |
commit | 7c7d54dab6d04d43521f9e42c0b533f0225279af (patch) | |
tree | 00495087c2dbf6de541aa7bb702b3b47fc1946c6 | |
parent | gpio(4) framework man page. (diff) | |
download | wireguard-openbsd-7c7d54dab6d04d43521f9e42c0b533f0225279af.tar.xz wireguard-openbsd-7c7d54dab6d04d43521f9e42c0b533f0225279af.zip |
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.c | 6 |
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; } |