You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
258 B

  1. --- a/src/tools.cc
  2. +++ b/src/tools.cc
  3. @@ -582,7 +582,8 @@ enter_suid(void)
  4. }
  5. #else
  6. - setuid(0);
  7. + if (setuid(0) < 0)
  8. + debugs(50, 1, "no_suid: setuid (0)");
  9. #endif
  10. #if HAVE_PRCTL && defined(PR_SET_DUMPABLE)
  11. /* Set Linux DUMPABLE flag */