freebsd-ports/www/squid-devel/files/patch-src_tools.cc
Jason Unovitch 8b40a2586d www/squid-devel: update 4.0.14 -> 4.0.17
- Remove upstreamed patch (IPv6 + PF crash)
- Add --enable-zph-qos option to default set
  http://wiki.squid-cache.org/Features/QualityOfService
- Mark broken if ssl set to openssl-devel, it doesn't build
- Switch IPV6 option to options helpers

PR:		215418
Submitted by:	Pavel Timofeev <timp87@gmail.com> (maintainer)
Security:	CVE-2016-10002
Security:	CVE-2016-10003
Security:	https://vuxml.FreeBSD.org/freebsd/41f8af15-c8b9-11e6-ae1b-002590263bf5.html
MFH:		2016Q4
2016-12-23 04:39:06 +00:00

11 lines
416 B
C++

--- src/tools.cc.orig 2016-12-16 10:06:20 UTC
+++ src/tools.cc
@@ -603,7 +603,7 @@ no_suid(void)
uid = geteuid();
debugs(21, 3, "no_suid: PID " << getpid() << " giving up root priveleges forever");
- if (setuid(0) < 0) {
+ if (setuid(0) < 0 && TheProcessKind != pkHelper) {
int xerrno = errno;
debugs(50, DBG_IMPORTANT, "WARNING: no_suid: setuid(0): " << xstrerr(xerrno));
}