]>
Commit | Line | Data |
---|---|---|
f36fc9f9 | 1 | diff -ur bircd.orig/src/ircd.c bircd/src/ircd.c |
2 | --- bircd.orig/src/ircd.c 2004-01-07 20:15:56.000000000 +0100 | |
3 | +++ bircd/src/ircd.c 2004-08-02 19:23:00.389983904 +0200 | |
4 | @@ -975,8 +975,8 @@ | |
5 | (void)fprintf(stderr,"WARNING: running ircd with uid = %d\n",SET_UID); | |
6 | (void)fprintf(stderr," changing to gid %d.\n",SET_GID); | |
7 | #endif | |
8 | - (void)setuid(SET_UID); | |
9 | (void)setgid(SET_GID); | |
10 | + (void)setuid(SET_UID); | |
11 | #else | |
12 | /* check for setuid root as usual */ | |
13 | (void)fprintf(stderr,"ERROR: do not run ircd setuid root. Make it setuid a normal user.\n"); | |
14 | diff -ur bircd.orig/src/s_bsd.c bircd/src/s_bsd.c | |
15 | --- bircd.orig/src/s_bsd.c 2004-01-11 09:42:08.000000000 +0100 | |
16 | +++ bircd/src/s_bsd.c 2004-08-02 19:54:40.710091336 +0200 | |
17 | @@ -643,7 +643,7 @@ | |
18 | if(((bootopt&BOOT_CONSOLE) || isatty(0)) && !(bootopt & (BOOT_INETD|BOOT_OPER))) | |
19 | { | |
20 | if(fork()) | |
21 | - exit(-1); | |
22 | + exit(0); | |
23 | #ifdef TIOCNOTTY | |
24 | if((fd=open("/dev/tty",O_RDWR))>=0) | |
25 | { |