[Pkg-sysvinit-devel] Bug#375183: invoke-rc.d: Uses hardcoded path to policy-rc.d

Riku Voipio riku.voipio at iki.fi
Thu Dec 28 14:31:59 CET 2006


tags 375183 +patch
thanks

Really simple fix. /usr/bin/policy-rc.d will continue to work
for users who have it there, yet for those who want to put the
file to the correct place, can do so. As an extra safeguard
PATH is guaranteed.
-------------- next part --------------
diff -Naur main.d/sysvinit-2.86.ds1/debian/sysv-rc/sbin/invoke-rc.d main.d/sysvinit-2.86.ds1.orig/debian/sysv-rc/sbin/invoke-rc.d
--- main.d/sysvinit-2.86.ds1/debian/sysv-rc/sbin/invoke-rc.d	2006-11-27 15:50:04.000000000 +0200
+++ main.d/sysvinit-2.86.ds1.orig/debian/sysv-rc/sbin/invoke-rc.d	2006-11-27 15:50:21.000000000 +0200
@@ -24,7 +24,7 @@
 
 # Constants
 RUNLEVEL=/sbin/runlevel
-POLICYHELPER=/usr/sbin/policy-rc.d
+POLICYHELPER="`PATH=$PATH:/usr/sbin:/sbin:/usr/local/sbin which policy-rc.d`"
 INITDPREFIX=/etc/init.d/
 RCDPREFIX=/etc/rc
 


More information about the Pkg-sysvinit-devel mailing list