/etc/cron.daily/standard doesn't report files in lost+found and also doesn't support ext4
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cron (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Binary package hint: cron
Ubuntu release: 9.04
Package: cron 3.0pl1-105ubuntu1
The script /etc/cron.
The bug in the script is caused by setting $lost_found variable in a pipeline. The variable is set only in a subshell, so it will always be empty when checked later.
A .debdiff to fix this problem is attached. It also adds ext4 to the list of checked filesystems.
How to reproduce (/boot is ext3 and / is ext4):
# echo test-ext3 > /boot/lost+
# echo test-ext4 > /lost+found/
# /etc/cron.
The commands above should produce a report about files in the lost+found directories. With the attached patch both files are listed correctly.
This bug was fixed in the package cron - 3.0pl1-113ubuntu1
---------------
cron (3.0pl1-113ubuntu1) maverick; urgency=low
* Merge from debian unstable. Fixes: etc/init. d/cron session- noninteractive
- LP: #46493 (this should have been fixed way back in 3.0pl1-87, and I
confirmed it is no longer a problem)
- LP: #118168 (Debian #79037)
- LP: #151231 (Debian #155109, #443615)
- LP: #308341 (Debian #437180)
* Remaining changes:
- debian/control:
+ Build-Depends on debhelper >= 7.3.15ubuntu2, for Upstart
+ Drop MTA and lockfile-args to Suggests
- add debian/cron.upstart
- debian/postinst: remove calls to update-rc.d, invoke-rc.d and
/
- debian/postrm: remove call to update-rc.d
- debian/prerm: remove calls to invoke-rc.d and /etc/init.d/cron
- debian/rules: install Upstart job
* Drop the following changes, now in debian:
- popen.c: check return code of initgroups() in cron_popen()
- debian/control: add missing ${misc:Depends}
- debian/control: Depends bump on lsb to >= 3.2.12ubuntu2. No longer
required now that we use Upstart
- debian/cron.pam: switch from including common-session to including
the new common-
- pathnames.h: use sensible-editor
cron (3.0pl1-113) unstable; urgency=medium
[ Christian Kastner / Javier Fernandez-Sanguino ]
* debian/postinst:
- Now that permissions and ownership of crontabs are changed unconditionally,
do not attempt to chown user crontabs if none are present. Closes: #585636
- Only change permissions if the crontabs directory exist
cron (3.0pl1-112) unstable; urgency=low
[ Christian Kastner ] cron/crontabs. Closes: #304036, #460095 standard. monthly: cron.bug- {control, script} {control, script} above
* do_command.c:
- Don't send mail when a job exits non-zero, only send mail if the job sent
output to stderr. This behaviour was introduced erroneously; while it
does have merit, it is completly against standard cron behaviour.
Closes: #581612
* debian/compat:
- Bumped debhelper compatibility to 7
* debian/control:
- Bumped Standards-Version to 3.8.4 (no change needed)
- Build-Depend on debhelper (>= 7.0.50~)
- Added dependency on ${misc:Depends} to package cron
* debian/cron.init:
- Changed Default-Stop from (1) to (empty). rc0 and rc6 were removed in
3.0pl1-101 because the stop action -- sending SIGTERM/SIGKILL to cron
on shutdown/reboot -- was redundant. This, however, also applies to
rc1, because killprocs will do that for us.
* debian/postinst:
- Removed obsolete dpkg file backup code, this has been handed over to dpkg
in 3.0pl1-109
- Removed last remaining stop action (for rc1) from upate-rc.d (see above)
- Add dpkg-statoverride for /usr/bin/crontab, and unconditionally change
permissions of /var/spool/
* debian/
- Removed because it had been empty for years and therefore served no
purpose
* debian/
- Added to extend information submitted by reportbug
* debian/rules:
- Applied changes for standard.monthly and cron.bug-
* debian/copyright:
- Updated to reflect recent contribution...