Merge branch '4134-zonefile-erofs-bind-9.18' into 'bind-9.18'

Translate POSIX errorcode EROFS to ISC_R_NOPERM

See merge request isc-projects/bind9!8033
This commit is contained in:
Tony Finch
2023-06-14 13:20:18 +00:00
2 changed files with 5 additions and 0 deletions

View File

@@ -1,3 +1,7 @@
6196. [cleanup] Report "permission denied" instead of "unexpected error"
when trying to update a zone file on a read-only file
system. Thanks to Midnight Veil. [GL #4134]
6193. [bug] Fix a catz db update notification callback registration
logic error, which could crash named when receiving an
AXFR update for a catalog zone while the previous update

View File

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