summaryrefslogtreecommitdiff
path: root/usr/src/cmd/cron
diff options
context:
space:
mode:
authorViswanathan Kannappan <Viswanathan.Kannappan@Sun.COM>2009-03-09 10:11:26 -0700
committerViswanathan Kannappan <Viswanathan.Kannappan@Sun.COM>2009-03-09 10:11:26 -0700
commitb0d0a1c8457bb524369930a3ec38e33ee968f690 (patch)
treedc454f67a439f7881771bcdb48824d4ca376aaa8 /usr/src/cmd/cron
parent3aea1906de54d896a8411075e0e84a4e300329f6 (diff)
downloadillumos-joyent-b0d0a1c8457bb524369930a3ec38e33ee968f690.tar.gz
6626020 crontab doesn't have have non-zero exit value for out-of-bounds errors
Contributed by Chad Mynhier <cmynhier@gmail.com>
Diffstat (limited to 'usr/src/cmd/cron')
-rw-r--r--usr/src/cmd/cron/crontab.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr/src/cmd/cron/crontab.c b/usr/src/cmd/cron/crontab.c
index 266ad44da3..2b3054628e 100644
--- a/usr/src/cmd/cron/crontab.c
+++ b/usr/src/cmd/cron/crontab.c
@@ -19,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
@@ -544,8 +544,9 @@ cont:
unlink(tnam);
crabort(BADCREATE);
}
- } else
- fprintf(stderr, "crontab: %s\n", gettext(ERRSFND));
+ } else {
+ crabort(ERRSFND);
+ }
unlink(tnam);
}