mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +00:00
correct errno to result translation
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user