patch-httpd_main_c 631 B

123456789101112131415161718192021
  1. $Id$
  2. --- axTLS.orig/httpd/main.c 2007-01-31 22:35:53.000000000 +0100
  3. +++ axTLS/httpd/main.c 2007-02-10 12:15:20.000000000 +0100
  4. @@ -98,11 +98,12 @@ int main(int argc, char *argv[])
  5. WSADATA wsaData;
  6. WSAStartup(wVersionRequested,&wsaData);
  7. #else
  8. - if (getuid() == 0) /* change our uid if we are root */
  9. - {
  10. - setgid(32767);
  11. - setuid(32767);
  12. - }
  13. + /* we can't bind to port 80/443 if we are nobody ?! */
  14. + //if (getuid() == 0) /* change our uid if we are root */
  15. + //{
  16. + // setgid(32767);
  17. + // setuid(32767);
  18. + //}
  19. signal(SIGQUIT, die);
  20. signal(SIGPIPE, SIG_IGN);