b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | --- 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 */ |