forked from enlightenment/enlightenment
e system - check chdir return
chdir to / will never fail... it's the root dir.. but let's make coverity happy. fix CID 1425454
This commit is contained in:
parent
273ec41687
commit
3d490704ca
|
@ -201,7 +201,11 @@ setuid_setup(void)
|
|||
}
|
||||
|
||||
// change CWD to / to avoid path search dlopens finding libs in ./
|
||||
chdir("/");
|
||||
if (chdir("/") != 0)
|
||||
{
|
||||
ERR("Unable to change working dir to /\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
// die with parent - special as this is setuid
|
||||
#ifdef HAVE_PRCTL
|
||||
|
|
Loading…
Reference in New Issue