mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 03:42:06 -04:00
Merge branch '884-patches-to-review' into 'master'
Correct errno to result translation Closes #884 See merge request isc-projects/bind9!1519
This commit is contained in:
commit
d27f41cb7f
2 changed files with 8 additions and 0 deletions
3
CHANGES
3
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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue