From 405a44d3266ba6824cf4db47b0abcbc720721fb0 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Sun, 3 Sep 2006 17:52:19 +0000 Subject: [PATCH] Use a #define to refer to /etc/crontab. --- usr.sbin/cron/crontab/crontab.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/cron/crontab/crontab.c b/usr.sbin/cron/crontab/crontab.c index e793b0b07d7..9ddd4b00720 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