summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/crontab.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2015-10-26 14:27:42 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2015-10-26 14:27:42 +0000
commit828fce48e56069e661e2e4e44058637a2272164f (patch)
tree5aab5fc65dfe3afa93bca000eb6c8f7fc5111b39 /usr.sbin/cron/crontab.c
parent65ed3f6879f7329db5c48afd8dfd5ec3fc4b5cea (diff)
Remove some useless defines and the set_cron_uid() function.
OK jung@
Diffstat (limited to 'usr.sbin/cron/crontab.c')
-rw-r--r--usr.sbin/cron/crontab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c
index 18189d604a2..05d90d07e87 100644
--- a/usr.sbin/cron/crontab.c
+++ b/usr.sbin/cron/crontab.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crontab.c,v 1.72 2015/10/06 14:58:37 tedu Exp $ */
+/* $OpenBSD: crontab.c,v 1.73 2015/10/26 14:27:41 millert Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
@@ -126,7 +126,7 @@ parse_args(int argc, char *argv[])
while (-1 != (argch = getopt(argc, argv, getoptargs))) {
switch (argch) {
case 'u':
- if (getuid() != ROOT_UID) {
+ if (getuid() != 0) {
fprintf(stderr,
"must be privileged to use -u\n");
exit(EXIT_FAILURE);