mirror of
https://git.freebsd.org/ports.git
synced 2025-05-15 08:41:51 -04:00
11 lines
416 B
C++
11 lines
416 B
C++
--- src/tools.cc.orig 2021-12-07 14:15:52 UTC
|
|
+++ src/tools.cc
|
|
@@ -608,7 +608,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));
|
|
}
|