From: Jelte Jansen Date: Tue, 29 Aug 2006 10:52:45 +0000 (+0000) Subject: exit on failure of dirreading X-Git-Tag: release-1.2.0~166 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=33c6821321f58b0f2d3945bbdccdfb8018a080bd;p=thirdparty%2Fldns.git exit on failure of dirreading --- diff --git a/pcat/pcat-diff.c b/pcat/pcat-diff.c index e2533841..49d1cb72 100644 --- a/pcat/pcat-diff.c +++ b/pcat/pcat-diff.c @@ -1183,6 +1183,7 @@ read_match_files(char *directory) (void) getcwd(orig_cwd, 100); if (chdir(directory) != 0) { fprintf(stderr, "Error opening directory %s: %s\n", directory, strerror(errno)); + exit(1); } if (nr_of_files < 1) { fprintf(stderr, "Warning: no match files found in %s\n", directory);