blob: fd11e85ce4a502ea77eae6678e59ed3b98ee4393 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/src/tools.cc
2+++ b/src/tools.cc
3@@ -582,7 +582,8 @@ enter_suid(void)
4 }
5 #else
6
7- setuid(0);
8+ if (setuid(0) < 0)
9+ debugs(50, 1, "no_suid: setuid (0)");
10 #endif
11 #if HAVE_PRCTL && defined(PR_SET_DUMPABLE)
12 /* Set Linux DUMPABLE flag */