1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-19 00:13:33 +00:00
freebsd-ports/www/squid/files/patch-src_tools.cc
Pavel Timofeev 5313460714 www/squid: update to 6.3
Error message translation files are now part of www/squid-langpack.

Changelog: http://www.squid-cache.org/Versions/v6/squid-6.3-RELEASENOTES.html

PR:		272524
2023-10-11 02:04:38 -04:00

12 lines
416 B
C++

--- src/tools.cc.orig 2023-02-28 09:10:25 UTC
+++ src/tools.cc
@@ -650,7 +650,7 @@ no_suid(void)
uid = geteuid();
debugs(21, 3, "no_suid: PID " << getpid() << " giving up root privileges 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));
}