From 218ce34e7d692cd12c5cf3bf94a675ec9e28fefb Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 18 Feb 2019 12:26:38 +1100 Subject: [PATCH 1/2] correct errno to result translation --- contrib/dlz/modules/filesystem/dir.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/dlz/modules/filesystem/dir.c b/contrib/dlz/modules/filesystem/dir.c index e5f1ac4f6f..5d0a200c43 100644 --- a/contrib/dlz/modules/filesystem/dir.c +++ b/contrib/dlz/modules/filesystem/dir.c @@ -57,15 +57,20 @@ dir_open(dir_t *dir, const char *dirname) { case ENAMETOOLONG: case EBADF: result = ISC_R_INVALIDFILE; + break; case ENOENT: result = ISC_R_FILENOTFOUND; + break; case EACCES: case EPERM: result = ISC_R_NOPERM; + break; case ENOMEM: result = ISC_R_NOMEMORY; + break; default: result = ISC_R_UNEXPECTED; + break; } } From a0c0d760297db57bcc0c3cbdcb332214e6936d86 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Wed, 20 Feb 2019 09:44:56 +1100 Subject: [PATCH 2/2] add CHANGES --- CHANGES | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGES b/CHANGES index 45e1c1f8c8..4bc1b2f6a1 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +5164. [bug] Correct errno to result translation in dlz filesystem + modules. [GL #884] + 5163. [cleanup] Out-of-tree builds failed --enable-dnstap. [GL #836] 5162. [cleanup] Improve dnssec-keymgr manual. Thanks to Tony Finch.