]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
exit on failure of dirreading
authorJelte Jansen <jeltejan@NLnetLabs.nl>
Tue, 29 Aug 2006 10:52:45 +0000 (10:52 +0000)
committerJelte Jansen <jeltejan@NLnetLabs.nl>
Tue, 29 Aug 2006 10:52:45 +0000 (10:52 +0000)
pcat/pcat-diff.c

index e253384102d0aabf2eb23795681fc9c14cfb998f..49d1cb7292e49aced754814cd0bb72187fbfd42a 100644 (file)
@@ -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);