Commit 4ac4806d authored by Mark Andrews's avatar Mark Andrews
Browse files

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

Correct errno to result translation

See merge request !1540
parents 2b4d66c1 a13c6e95
Pipeline #10228 failed with stages
in 12 minutes and 40 seconds
5164. [bug] Correct errno to result translation in dlz filesystem
modules. [GL #884]
5163. [cleanup] Out-of-tree builds failed --enable-dnstap. [GL #836] 5163. [cleanup] Out-of-tree builds failed --enable-dnstap. [GL #836]
   
5162. [cleanup] Improve dnssec-keymgr manual. Thanks to Tony Finch. 5162. [cleanup] Improve dnssec-keymgr manual. Thanks to Tony Finch.
......
...@@ -57,15 +57,20 @@ dir_open(dir_t *dir, const char *dirname) { ...@@ -57,15 +57,20 @@ dir_open(dir_t *dir, const char *dirname) {
case ENAMETOOLONG: case ENAMETOOLONG:
case EBADF: case EBADF:
result = ISC_R_INVALIDFILE; result = ISC_R_INVALIDFILE;
break;
case ENOENT: case ENOENT:
result = ISC_R_FILENOTFOUND; result = ISC_R_FILENOTFOUND;
break;
case EACCES: case EACCES:
case EPERM: case EPERM:
result = ISC_R_NOPERM; result = ISC_R_NOPERM;
break;
case ENOMEM: case ENOMEM:
result = ISC_R_NOMEMORY; result = ISC_R_NOMEMORY;
break;
default: default:
result = ISC_R_UNEXPECTED; 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