Fix insecure chroot (coverity)

This commit is contained in:
Howard Chu 2015-01-13 18:23:16 +00:00
parent 9710c2b17b
commit 79cce59ad4

View File

@ -757,6 +757,11 @@ unhandled_option:;
rc = 1;
goto stop;
}
if ( chdir( "/" ) ) {
perror("chdir");
rc = 1;
goto stop;
}
}
#endif