summaryrefslogtreecommitdiff
path: root/www/squid3/files/patch-src_tools.cc
blob: 606193be600190337da1f244858c3e732bf3ad7a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/tools.cc.orig	2015-11-01 10:44:25 UTC
+++ src/tools.cc
@@ -635,7 +635,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)
         debugs(50, DBG_IMPORTANT, "WARNING: no_suid: setuid(0): " << xstrerror());
 
     if (setuid(uid) < 0)