From fa49fa674f1d0dbcdc5252867c0cfa3478775234 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 2 Mar 2009 02:46:26 +0000 Subject: [PATCH] report and abort on getcwd() failures --- bin/tests/dst/dst_test.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bin/tests/dst/dst_test.c b/bin/tests/dst/dst_test.c index 8347a7d124..2ff73c4ffb 100644 --- a/bin/tests/dst/dst_test.c +++ b/bin/tests/dst/dst_test.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: dst_test.c,v 1.43 2007/06/19 23:47:00 tbox Exp $ */ +/* $Id: dst_test.c,v 1.43.332.1 2009/03/02 02:46:26 marka Exp $ */ #include @@ -245,7 +245,10 @@ main(void) { current = isc_mem_get(mctx, 256); if (current == NULL) return (1); - getcwd(current, 256); + if (getcwd(current, 256) == NULL) { + perror("getcwd"); + return (1); + } dns_result_register();