2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

Merge branch '4134-zonefile-erofs' into 'main'

Translate POSIX errorcode EROFS to ISC_R_NOPERM

Closes #4134

See merge request isc-projects/bind9!8017
This commit is contained in:
Tony Finch 2023-06-14 12:44:54 +00:00
commit 68cfbd2bd1
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]
6195. [bug] Use rcu to reference view->adb. [GL #4021]
6194. [func] Change function 'find_zone_keys()' to look for signing

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