mirror of
https://github.com/irssi/irssi.git
synced 2026-08-08 19:30:15 +02:00
disable setuid/setgid on android
This commit is contained in:
parent
fbe62a34d0
commit
4b2c710ebe
1 changed files with 2 additions and 0 deletions
|
|
@ -316,11 +316,13 @@ static void process_exec(PROCESS_REC *rec, const char *cmd)
|
|||
/* child process, try to clean up everything */
|
||||
setsid();
|
||||
|
||||
#ifndef __ANDROID__
|
||||
if (setuid(getuid()) != 0)
|
||||
_exit(EXIT_FAILURE);
|
||||
|
||||
if (setgid(getgid()) != 0)
|
||||
_exit(EXIT_FAILURE);
|
||||
#endif
|
||||
|
||||
signal(SIGINT, SIG_IGN);
|
||||
signal(SIGQUIT, SIG_DFL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue