diff options
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 |