mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
report when chdir fails. [RT #19360]
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: t_api.c,v 1.63 2008/01/18 23:46:58 tbox Exp $ */
|
/* $Id: t_api.c,v 1.64 2009/03/02 01:57:10 marka Exp $ */
|
||||||
|
|
||||||
/*! \file */
|
/*! \file */
|
||||||
|
|
||||||
@@ -224,8 +224,10 @@ main(int argc, char **argv) {
|
|||||||
* Set cwd.
|
* Set cwd.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (T_dir != NULL)
|
if (T_dir != NULL && chdir(T_dir) != 0) {
|
||||||
(void) chdir(T_dir);
|
fprintf(stderr, "chdir %s failed\n", T_dir);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* We don't want buffered output.
|
* We don't want buffered output.
|
||||||
|
Reference in New Issue
Block a user