mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
disable setuid/setgid on android
This commit is contained in:
parent
fbe62a34d0
commit
4b2c710ebe
@ -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…
Reference in New Issue
Block a user