From 828548ab56ed2dca36daf0dfdbb0644119ecbe2c Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 1 Sep 2005 10:23:57 +0000 Subject: According to bug #63, crond is unhappy with crontab lines that don't end in a newline, or lines that have trailing spaces. --- miscutils/crond.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'miscutils') diff --git a/miscutils/crond.c b/miscutils/crond.c index 085cf6e..53c255f 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c @@ -589,10 +589,8 @@ static void SynchronizeFile(const char *fileName) CronLine line; char *ptr; - if (buf[0]) { - buf[strlen(buf) - 1] = 0; - } - if (buf[0] == 0 || buf[0] == '#' || buf[0] == ' ' || buf[0] == '\t') { + trim(buf); + if (buf[0] == 0 || buf[0] == '#') { continue; } if (--maxEntries == 0) { -- cgit v1.1