[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#491732: Better check in /var/lib/dpkg/info/xdm.postinst



Package: xdm
Version: 1:1.1.8-2
Severity: wishlist

Some daemons like apache and cupsd check in their postinst scripts
(/var/lib/dpkg/info/apache2.2-common.postinst,
/var/lib/dpkg/info/cups.postinst) whether the corresponding script in
/etc/init.d is executable.
Only if the script is execuptable update-rc.d is run.
In the other case the creation of the links in /etc/rc*.d is
considered as undesired.

I made patch:

--- /var/lib/dpkg/info/xdm.postinst     2008-07-21 19:46:07.000000000 +0000
+++ /var/lib/dpkg/info/xdm.postinst.patched     2008-07-21 19:45:59.000000000 +0000
@@ -1010,7 +1010,7 @@
 # stdout, which can confuse debconf.
 db_stop

-if [ -e /etc/init.d/xdm ]; then
+if [ -x /etc/init.d/xdm ]; then
   update-rc.d xdm defaults 99 01
 fi

-- 
GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
Jetzt dabei sein: http://www.shortview.de/wasistshortview.php?mc=sv_ext_mf@gmx



Reply to: