From c5eb9389d663bc47a7108a07b0c0a5016333c47f Mon Sep 17 00:00:00 2001 From: obdev Date: Mon, 17 Jun 2024 19:36:09 +0000 Subject: [PATCH] [CP] adds handling for EACCES error --- deps/oblib/src/lib/restore/ob_storage_file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/oblib/src/lib/restore/ob_storage_file.cpp b/deps/oblib/src/lib/restore/ob_storage_file.cpp index 5ae4ad41b3..b67ffd0cc0 100644 --- a/deps/oblib/src/lib/restore/ob_storage_file.cpp +++ b/deps/oblib/src/lib/restore/ob_storage_file.cpp @@ -31,7 +31,7 @@ static void convert_io_error(const int sys_err, int &ob_error_code) { if (ENOENT == sys_err) { ob_error_code = OB_BACKUP_FILE_NOT_EXIST; - } else if (EPERM == sys_err) { + } else if (EPERM == sys_err || EACCES == sys_err) { ob_error_code = OB_BACKUP_PERMISSION_DENIED; } else if (ENOSPC == sys_err || EDQUOT == sys_err) { ob_error_code = OB_BACKUP_DEVICE_OUT_OF_SPACE;