2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

correct errno to result translation

This commit is contained in:
Mark Andrews
2019-02-18 12:26:38 +11:00
parent fa79f4b899
commit 218ce34e7d

View File

@@ -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;
}
}