mirror of
https://github.com/troglobit/finit.git
synced 2026-11-17 19:30:29 +00:00
Highly unlikekly, but chdir() needs to be checked
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
6af0446490
commit
70a1acc210
1 file changed
+2
-1
+2
-1
@@ -484,7 +484,8 @@ int main(int argc, char *argv[])
|
|||||||
setenv("PATH", _PATH_STDPATH, 1);
|
setenv("PATH", _PATH_STDPATH, 1);
|
||||||
setenv("SHELL", _PATH_BSHELL, 1);
|
setenv("SHELL", _PATH_BSHELL, 1);
|
||||||
|
|
||||||
chdir("/");
|
if (chdir("/"))
|
||||||
|
_pe("Failed cd /");
|
||||||
umask(0);
|
umask(0);
|
||||||
|
|
||||||
/* Allow progress, if enabled */
|
/* Allow progress, if enabled */
|
||||||
|
|||||||
Reference in new issue
Block a user