summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/database.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-02-20 20:38:09 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-02-20 20:38:09 +0000
commitbcbf9fadd55567efe030f79b158f7967f71fcef1 (patch)
treec5aaeed1ba6c1bc82073717a2f3e982c7a9e80ee /usr.sbin/cron/database.c
parent52cb8765cd31b1d97e7380effb1cf9b7e5bbd118 (diff)
Sync with ISC cron-current + my at(1) integration.
The at(1) code is now more tightly integrated into the cron codebase.
Diffstat (limited to 'usr.sbin/cron/database.c')
-rw-r--r--usr.sbin/cron/database.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/cron/database.c b/usr.sbin/cron/database.c
index ff5ad462c50..52668b2ba63 100644
--- a/usr.sbin/cron/database.c
+++ b/usr.sbin/cron/database.c
@@ -1,4 +1,5 @@
-/* $OpenBSD: database.c,v 1.11 2002/08/10 20:28:51 millert Exp $ */
+/* $OpenBSD: database.c,v 1.12 2003/02/20 20:38:08 millert Exp $ */
+
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* All rights reserved
*/
@@ -21,7 +22,7 @@
*/
#if !defined(lint) && !defined(LINT)
-static char const rcsid[] = "$OpenBSD: database.c,v 1.11 2002/08/10 20:28:51 millert Exp $";
+static char const rcsid[] = "$OpenBSD: database.c,v 1.12 2003/02/20 20:38:08 millert Exp $";
#endif
/* vix 26jan87 [RCS has the log]
@@ -212,7 +213,7 @@ process_crontab(const char *uname, const char *fname, const char *tabname,
log_it(fname, getpid(), "BAD FILE MODE", tabname);
goto next_crontab;
}
- if (statbuf->st_uid != 0 && (pw == NULL ||
+ if (statbuf->st_uid != ROOT_UID && (pw == NULL ||
statbuf->st_uid != pw->pw_uid || strcmp(uname, pw->pw_name) != 0)) {
log_it(fname, getpid(), "WRONG FILE OWNER", tabname);
goto next_crontab;