mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -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.
This commit is contained in:
parent
06bbe6a2db
commit
dd6acc1cac
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