summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2006-09-03 17:52:19 +0000
committerru <ru@FreeBSD.org>2006-09-03 17:52:19 +0000
commit27ee15c183012c2026fb5936eb0fab1e677aad1f (patch)
treef1b9c94bbfc04fe18288ae7e6754635109cc04e5 /usr.sbin/cron
parentde3d4015b8ce5deb96bafba13561f126d0231d02 (diff)
downloadFreeBSD-src-27ee15c183012c2026fb5936eb0fab1e677aad1f.zip
FreeBSD-src-27ee15c183012c2026fb5936eb0fab1e677aad1f.tar.gz
Use a #define to refer to /etc/crontab.
Diffstat (limited to 'usr.sbin/cron')
-rw-r--r--usr.sbin/cron/crontab/crontab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/cron/crontab/crontab.c b/usr.sbin/cron/crontab/crontab.c
index e793b0b..9ddd4b0 100644
--- a/usr.sbin/cron/crontab/crontab.c
+++ b/usr.sbin/cron/crontab/crontab.c
@@ -202,8 +202,8 @@ parse_args(argc, argv)
if (!strcmp(Filename, "-")) {
NewCrontab = stdin;
} else if (realpath(Filename, resolved_path) != NULL &&
- !strcmp(resolved_path, "/etc/crontab")) {
- err(ERROR_EXIT, "/etc/crontab must be edited manually");
+ !strcmp(resolved_path, SYSCRONTAB)) {
+ err(ERROR_EXIT, SYSCRONTAB " must be edited manually");
} else {
/* relinquish the setuid status of the binary during
* the open, lest nonroot users read files they should
OpenPOWER on IntegriCloud