Fixed `broken pipe' error when server is running SUID; accidentally uses
* src/server/main.c: Fixed `broken pipe' error when server is running SUID; accidentally uses setreuid () instead of setregid ().
This commit is contained in:
@@ -71,7 +71,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
/* !!! WE ARE ROOT HERE - CHANGE WITH CAUTION !!! */
|
/* !!! WE ARE ROOT HERE - CHANGE WITH CAUTION !!! */
|
||||||
|
|
||||||
setreuid (uid, euid); setreuid (gid, egid);
|
setreuid (uid, euid); setregid (gid, egid);
|
||||||
|
|
||||||
glibtop_open (&server, argv [0]);
|
glibtop_open (&server, argv [0]);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user