summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2022-06-01 11:13:15 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2022-06-01 11:13:15 +0300
commitfde99e006d0947977f196854dd1f5a2eaa030c20 (patch)
treea62f12289d014c990effd9bc9746deafde24c70a
parent9d10b7107cf022b939dc61cedf8fc8985443c880 (diff)
downloadmariadb-git-fde99e006d0947977f196854dd1f5a2eaa030c20.tar.gz
MDEV-28716: Portability: unlink() can return EPERM instead of EISDIR
-rw-r--r--storage/innobase/os/os0file.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/innobase/os/os0file.cc b/storage/innobase/os/os0file.cc
index 8c76e86ef0f..2c94ea6e393 100644
--- a/storage/innobase/os/os0file.cc
+++ b/storage/innobase/os/os0file.cc
@@ -2479,6 +2479,7 @@ os_file_get_last_error_low(
case EXDEV:
case ENOTDIR:
case EISDIR:
+ case EPERM:
return(OS_FILE_PATH_ERROR);
case EAGAIN:
if (srv_use_native_aio) {