source: freewrt/package/axtls/patches/patch-httpd_main_c@ 2d5b13d

freewrt_1_0 freewrt_2_0
Last change on this file since 2d5b13d was 2d5b13d, checked in by Waldemar Brodkorb <wbx@…>, 19 years ago
  • update aircrack to aircrack-ng, requested by Michael Schwab, aircrack-ng is better maintained and allows packet injection with madwifi (a small patch is needed for that)
  • fix axtls package, the package contains a small SSL webserver named axhttpd (20kb size)
    • the webserver is axhttpd, not awhttpd
    • latest upstream version used
    • fixed cross-compile problem
    • fix strange setuid stuff from upstream, if axhttpd is started as root, the process gets first nobody rights and _after_ that he tries to bind a port under 1024 !? Don't know how this could ever work, but a simple html page is displayed correctly, after applying the patch

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@1926 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 636 bytes
Line 
1$FreeWRT$
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
20 signal(SIGQUIT, die);
21 signal(SIGPIPE, SIG_IGN);
Note: See TracBrowser for help on using the repository browser.