Subject: pkg/33458: pkgsrc/www/squid has incorrect user name in configuration file
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <dlg@dorkzilla.org>
List: pkgsrc-bugs
Date: 05/10/2006 19:50:00
>Number:         33458
>Category:       pkg
>Synopsis:       pkgsrc/www/squid has incorrect user name in configuration file
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 10 19:50:00 +0000 2006
>Originator:     david l goodrich
>Release:        NetBSD 2.0.2
>Organization:
>Environment:
NetBSD rosie.dsrw.org 2.0.2 NetBSD 2.0.2 (GENERIC) #0: Wed Mar 23 08:53:42 UTC 2005  jmc@faith.netbsd.org:/home/builds/ab/netbsd-2-0-2-RELEASE/i386/200503220140Z-obj/home/builds/ab/netbsd-2-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC i386

>Description:
the cache_effective_user's default value, "nobody" in squid.conf is incorrect for pkgsrc's build of squid, which uses the default user of "squid".  The below patch will add an entry to the installed squid.conf to make this change.
>How-To-Repeat:

>Fix:
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/www/squid/distinfo,v
retrieving revision 1.114
diff -u -r1.114 distinfo
--- distinfo
+++ distinfo
@@ -17,3 +17,4 @@
 SHA1 (patch-ap) = e0b7a203f6e299c6e103aaf50aed611a0670bb14
 SHA1 (patch-bb) = dd9de273a1c1d49ec64ad79c49fad9ac862650d7
 SHA1 (patch-bc) = 536299e59c396829f23484a14bb9a6f5c0a4de35
+SHA1 (patch-bd) = 4d3c097c5cc94616704909ad2a9fc13d686f2e46
Index: patches/patch-bd
--- /dev/null
+++ patches/patch-bd
@@ -0,0 +1,13 @@
+--- src/cf.data.pre.orig	2006-05-10 13:24:41.000000000 -0500
++++ src/cf.data.pre
+@@ -2509,6 +2509,10 @@
+ 	user's default group ID (taken from the password file) and
+ 	supplementary group list from the from groups membership of
+ 	cache_effective_user.
++NOCOMMENT_START
++
++cache_effective_user squid
++NOCOMMENT_END
+ DOC_END
+ 
+