forked from enlightenment/enlightenment
e sys main - change cwd to avoid loading .so's in ./
fixes T8676
This commit is contained in:
parent
fc26d91ac0
commit
d42605f5c0
|
@ -123,6 +123,8 @@ setuid_setup(void)
|
|||
fprintf(stderr, "Unable to set $HOME environment\n");
|
||||
exit(1);
|
||||
}
|
||||
// change CWD to / to avoid path search dlopens finding libs in ./
|
||||
chdir("/");
|
||||
|
||||
// die with parent - special as this is setuid
|
||||
#ifdef HAVE_PRCTL
|
||||
|
|
Loading…
Reference in New Issue