diff options
author | ru <ru@FreeBSD.org> | 2006-09-03 17:52:19 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2006-09-03 17:52:19 +0000 |
commit | 27ee15c183012c2026fb5936eb0fab1e677aad1f (patch) | |
tree | f1b9c94bbfc04fe18288ae7e6754635109cc04e5 /usr.sbin/cron/crontab/crontab.c | |
parent | de3d4015b8ce5deb96bafba13561f126d0231d02 (diff) | |
download | FreeBSD-src-27ee15c183012c2026fb5936eb0fab1e677aad1f.zip FreeBSD-src-27ee15c183012c2026fb5936eb0fab1e677aad1f.tar.gz |
Use a #define to refer to /etc/crontab.
Diffstat (limited to 'usr.sbin/cron/crontab/crontab.c')
-rw-r--r-- | usr.sbin/cron/crontab/crontab.c | 4 |
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 |