summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron/crontab.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2015-10-26 14:27:41 +0000
committermillert <millert@openbsd.org>2015-10-26 14:27:41 +0000
commit5c7b7de1330b016f9fee8954ceeafe6f39f8bffa (patch)
treef8d8632bb4c394f84ea364935fe2b108aea06f76 /usr.sbin/cron/crontab.c
parentLet SLIST_REMOVE invalidate the pointer in more cases. (diff)
downloadwireguard-openbsd-5c7b7de1330b016f9fee8954ceeafe6f39f8bffa.tar.xz
wireguard-openbsd-5c7b7de1330b016f9fee8954ceeafe6f39f8bffa.zip
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);