Highly unlikekly, but chdir() needs to be checked

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg committed 2021-03-07 11:40:25 +01:00
1 parent 6af0446490
commit 70a1acc210
1 file changed
+2 -1
+2 -1
View File
@@ -484,7 +484,8 @@ int main(int argc, char *argv[])
setenv("PATH", _PATH_STDPATH, 1);
setenv("SHELL", _PATH_BSHELL, 1);
chdir("/");
if (chdir("/"))
_pe("Failed cd /");
umask(0);
/* Allow progress, if enabled */