summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron/crontab.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2015-01-23 01:01:06 +0000
committertedu <tedu@openbsd.org>2015-01-23 01:01:06 +0000
commit585d9be6bb6d448e46612ddbbf011e7472b45079 (patch)
tree5d724bb60543ad8641dd35f2dc6cb21de476de42 /usr.sbin/cron/crontab.c
parentWonders of roff(7): Integer numbers in numerical expressions can carry (diff)
downloadwireguard-openbsd-585d9be6bb6d448e46612ddbbf011e7472b45079.tar.xz
wireguard-openbsd-585d9be6bb6d448e46612ddbbf011e7472b45079.zip
remove debug code.
I think the level of debug code in cron is excessive for a program that has reached feature complete. If cron needs to provide more information to the user about its operational status, I think syslog would be more appropriate. (The debug flags also disable forking into the background, so they aren't even that useful for debugging a live system.) ok deraadt millert
Diffstat (limited to 'usr.sbin/cron/crontab.c')
-rw-r--r--usr.sbin/cron/crontab.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c
index 7d01f0b2315..17a5632e0f0 100644
--- a/usr.sbin/cron/crontab.c
+++ b/usr.sbin/cron/crontab.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crontab.c,v 1.67 2015/01/14 17:27:29 millert Exp $ */
+/* $OpenBSD: crontab.c,v 1.68 2015/01/23 01:01:06 tedu Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* All rights reserved
@@ -36,12 +36,7 @@
enum opt_t { opt_unknown, opt_list, opt_delete, opt_edit, opt_replace };
-#if DEBUGGING
-static char *Options[] = { "???", "list", "delete", "edit", "replace" };
-static char *getoptargs = "u:lerx:";
-#else
static char *getoptargs = "u:ler";
-#endif
static pid_t Pid;
static char User[MAX_UNAME], RealUser[MAX_UNAME];
@@ -136,12 +131,6 @@ parse_args(int argc, char *argv[]) {
Option = opt_unknown;
while (-1 != (argch = getopt(argc, argv, getoptargs))) {
switch (argch) {
-#if DEBUGGING
- case 'x':
- if (!set_debug_flags(optarg))
- usage("bad debug option");
- break;
-#endif
case 'u':
if (getuid() != ROOT_UID) {
fprintf(stderr,
@@ -221,9 +210,6 @@ parse_args(int argc, char *argv[]) {
}
}
}
-
- Debug(DMISC, ("user=%s, file=%s, option=%s\n",
- User, Filename, Options[(int)Option]))
}
static void