mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-27 12:13:20 -04:00
Translate POSIX errorcode EROFS to ISC_R_NOPERM
Report "permission denied" instead of "unexpected error"
when trying to update a zone file on a read-only file system.
(cherry picked from commit dd6acc1cac)
This commit is contained in:
parent
025110b07a
commit
5172f4c32a
1 changed files with 1 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ isc___errno2result(int posixerrno, bool dolog, const char *file,
|
|||
return (ISC_R_FILENOTFOUND);
|
||||
case EACCES:
|
||||
case EPERM:
|
||||
case EROFS:
|
||||
return (ISC_R_NOPERM);
|
||||
case EEXIST:
|
||||
return (ISC_R_FILEEXISTS);
|
||||
|
|
|
|||
Loading…
Reference in a new issue