According to bug #63, crond is unhappy with crontab lines that don't end in a

newline, or lines that have trailing spaces.
This commit is contained in:
Rob Landley
2005-09-01 10:23:57 +00:00
parent 344ea471ef
commit 828548ab56
2 changed files with 10 additions and 8 deletions

View File

@ -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) {