Commit 26775896 authored by Mark Andrews's avatar Mark Andrews
Browse files

Merge branch '884-patches-to-review-v9_11' into 'v9_11'

Correct errno to result translation

See merge request !1541
parents 46d6ca86 212e126f
Pipeline #10214 passed with stages
in 1 minute and 1 second
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.
......
......@@ -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;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment