Package: squid3
Version: 3.3.8-1.2
Tags: patch
Severity: important
User: [email protected]
Usertags: debian-edu

Hi.  I am considering for Debian Edu Jessie to replace the default
squid.conf file with our own by modifying /etc/default/squid3, but
discovered that thanks to a bug in the init.d script, this is not
possible.  Most of the file uses the $CONFIG setting, but one function
do not.  The following patch modifies grepconf() to use the config file
variable like the rest of the file.  Please include this patch in
Jessie.

--- /etc/init.d/squid3.orig     2014-10-03 10:52:56.289787884 +0100
+++ /etc/init.d/squid3  2014-10-03 10:53:32.705780251 +0100
@@ -56,13 +56,12 @@
 
 grepconf () {
        w="     " # space tab
-       sq=/etc/squid3/squid.conf
        # sed is cool.
        res=`sed -ne '
                s/^'$1'['"$w"']\+\([^'"$w"']\+\).*$/\1/p;
                t end;
                d;
-               :end q' < $sq`
+               :end q' < $CONFIG`
        [ -n "$res" ] || res=$2
        echo "$res"
 }

-- 
Happy hacking
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to