Control: reopen -1
Control: found -1 1.5.4-2

Hi!

It seems that the fix for #820088 introduced in systemd-cron version
1.5.4-2 is incomplete: At least on my system the setgid bit is only
correctly cleared after I re-install systemd-cron, but not after the
first install (see the log below for more details). Maybe the fix needs
to be placed in the preinst script instead of the postinst?

Best regards

Alexander Kurtz

=== Log ===

root@shepard:~# apt purge systemd-cron
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package 'systemd-cron' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@shepard:~# dpkg -S /usr/bin/crontab 
cron: /usr/bin/crontab
root@shepard:~# ls -l /usr/bin/crontab 
-rwxr-sr-x 1 root crontab 36008 May 14  2015 /usr/bin/crontab
root@shepard:~# # Everything ok so far, this is vixie-cron...
root@shepard:~# 
root@shepard:~# apt install systemd-cron
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  cron*
The following NEW packages will be installed:
  systemd-cron
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 32.3 kB of archives.
After this operation, 63.5 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 http://mirror.unitedcolo.de/debian stretch/main amd64 systemd-cron amd64 
1.5.4-2 [32.3 kB]
Fetched 32.3 kB in 0s (76.8 kB/s)     
dpkg: cron: dependency problems, but removing anyway as you requested:
 exim4-base depends on cron | cron-daemon | anacron; however:
  Package cron is to be removed.
  Package cron-daemon is not installed.
  Package cron which provides cron-daemon is to be removed.
  Package anacron is not installed.
 exim4-base depends on cron | cron-daemon | anacron; however:
  Package cron is to be removed.
  Package cron-daemon is not installed.
  Package cron which provides cron-daemon is to be removed.
  Package anacron is not installed.

(Reading database ... 313723 files and directories currently installed.)
Removing cron (3.0pl1-128) ...
invoke-rc.d: policy-rc.d denied execution of stop.
Purging configuration files for cron (3.0pl1-128) ...
dpkg: warning: while removing cron, directory '/var/spool/cron/crontabs' not 
empty so not removed
Processing triggers for man-db (2.7.5-1) ...
Selecting previously unselected package systemd-cron.
(Reading database ... 313688 files and directories currently installed.)
Preparing to unpack .../systemd-cron_1.5.4-2_amd64.deb ...
Unpacking systemd-cron (1.5.4-2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up systemd-cron (1.5.4-2) ...
Created symlink from /etc/systemd/system/multi-user.target.wants/cron.target to 
/lib/systemd/system/cron.target.
/usr/sbin/policy-rc.d returned 101, not running 'start cron.target'
root@shepard:~# dpkg -S /usr/bin/crontab 
systemd-cron: /usr/bin/crontab
root@shepard:~# ls -l /usr/bin/crontab 
-rwxr-sr-x 1 root crontab 12824 May  6 20:37 /usr/bin/crontab
root@shepard:~# # Ok, this shouldn't be there...
root@shepard:~# 
root@shepard:~# apt install --reinstall systemd-cron
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 32.3 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://ftp.stw-bonn.de/debian stretch/main amd64 systemd-cron amd64 
1.5.4-2 [32.3 kB]
Fetched 32.3 kB in 0s (91.8 kB/s)     
(Reading database ... 313733 files and directories currently installed.)
Preparing to unpack .../systemd-cron_1.5.4-2_amd64.deb ...
/usr/sbin/policy-rc.d returned 101, not running 'stop cron.target'
Unpacking systemd-cron (1.5.4-2) over (1.5.4-2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up systemd-cron (1.5.4-2) ...
/usr/sbin/policy-rc.d returned 101, not running 'start cron.target'
root@shepard:~# dpkg -S /usr/bin/crontab 
systemd-cron: /usr/bin/crontab
root@shepard:~# ls -l /usr/bin/crontab 
-rwxr-xr-x 1 root root 12824 May  6 20:37 /usr/bin/crontab
root@shepard:~# # WTF?

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Pkg-systemd-maintainers mailing list
Pkg-systemd-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Reply via email to