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