diff options
| author | 2003-02-17 18:40:11 +0000 | |
|---|---|---|
| committer | 2003-02-17 18:40:11 +0000 | |
| commit | 13ae079ddc032e70e34b3d3db19d285b5db4d537 (patch) | |
| tree | 941ab38426a0d70a7b77ce97fc4643410f63853a /usr.sbin/cron/crontab.c | |
| parent | minor KNF (diff) | |
| download | wireguard-openbsd-13ae079ddc032e70e34b3d3db19d285b5db4d537.tar.xz wireguard-openbsd-13ae079ddc032e70e34b3d3db19d285b5db4d537.zip | |
Add a -n flag and version string; from vixie
Diffstat (limited to 'usr.sbin/cron/crontab.c')
| -rw-r--r-- | usr.sbin/cron/crontab.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c index 6d364f95208..9a03c47961a 100644 --- a/usr.sbin/cron/crontab.c +++ b/usr.sbin/cron/crontab.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crontab.c,v 1.36 2002/08/10 20:28:51 millert Exp $ */ +/* $OpenBSD: crontab.c,v 1.37 2003/02/17 18:40:11 millert Exp $ */ /* Copyright 1988,1990,1993,1994 by Paul Vixie * All rights reserved */ @@ -21,7 +21,7 @@ */ #if !defined(lint) && !defined(LINT) -static char const rcsid[] = "$OpenBSD: crontab.c,v 1.36 2002/08/10 20:28:51 millert Exp $"; +static char const rcsid[] = "$OpenBSD: crontab.c,v 1.37 2003/02/17 18:40:11 millert Exp $"; #endif /* crontab - install and manage per-user crontab files @@ -112,9 +112,10 @@ main(int argc, char *argv[]) { exitstatus = ERROR_EXIT; break; default: - exit(1); + exitstatus = ERROR_EXIT; + break; } - exit(0); + exit(exitstatus); /*NOTREACHED*/ } @@ -536,7 +537,7 @@ replace_cmd(void) { */ fprintf(tmp, "# DO NOT EDIT THIS FILE - edit the master and reinstall.\n"); fprintf(tmp, "# (%s installed on %-24.24s)\n", Filename, ctime(&now)); - fprintf(tmp, "# (Cron version -- %s)\n", rcsid); + fprintf(tmp, "# (Cron version %s -- %s)\n", CRON_VERSION, rcsid); /* copy the crontab to the tmp */ |
