Package: anacron
Version: 2.3-23
Severity: normal

--- Please enter the report below this line. ---

For unknown reason at some point I had carriage returns as line-endings in my anacrontab, which resulted in a very strange behaviour of anacron. While some of my jobs still got executed, others, like the cron.daily job each day failed with the message:

run-parts: failed to open directory /etc/cron.daily: No such file or directory

See StackOverflow thread for the whole story:
https://superuser.com/questions/1056326/anacron-fails-to-open-folder-cron-daily-cron-weekly

From my POV anacron either should refuse a corrupted anacrontab, and sent a proper message to root. Or it should just work fine with these carriage returns.

Here a visualisation of the corrupted anacrontab:
sed -n l anacrontab
# /etc/anacrontab: configuration file for anacron\r$
...

A newly generated anacron tab looks like that:
sed -n l anacrontab
# /etc/anacrontab: configuration file for anacron$
...


--- System information. ---
Architecture: amd64
Kernel: Linux 3.16.0-4-amd64

Debian Release: 8.4
500 trusty ppa.launchpad.net
500 stable-updates ftp.de.debian.org
500 stable security.debian.org
500 stable ftp.de.debian.org

--- Package information. ---
Depends (Version) | Installed
===========================-+-============
libc6 (>= 2.7) |
debianutils (>= 1.7) |
lsb-base (>= 3.0-10) |


Recommends (Version) | Installed
====================================-+-===============
cron (>= 3.0pl1-43) | 3.0pl1-127+deb8u1
rsyslog |
OR system-log-daemon |


Suggests (Version) | Installed
===================================-+-===========
default-mta |
OR mail-transport-agent |
powermgmt-base | 1.31+nmu1

Reply via email to