From 057870ccbb3d8101eab4cb7e575c35f11c91c10f Mon Sep 17 00:00:00 2001 From: William Dean Date: Sat, 25 Jun 2022 14:21:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8C=82=E8=BD=BD=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E6=97=B6=E7=9A=84=E6=89=93=E5=8D=B0=E7=BA=A7=E5=88=AB?= =?UTF-8?q?=E5=8F=8A=E6=89=93=E5=8D=B0=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: William Dean --- util/src/sandbox_utils.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/util/src/sandbox_utils.cpp b/util/src/sandbox_utils.cpp index 745da9c5..b576a145 100755 --- a/util/src/sandbox_utils.cpp +++ b/util/src/sandbox_utils.cpp @@ -129,8 +129,8 @@ int32_t SandboxUtils::DoAppSandboxMountOnce(const char *originPath, const char * int ret = 0; // to mount fs and bind mount files or directory ret = mount(originPath, destinationPath, fsType, mountFlags, options); - APPSPAWN_CHECK(ret == 0, return ret, "bind mount %s to %s failed %d", originPath, - destinationPath, errno); + APPSPAWN_CHECK(ret == 0, return ret, "bind mount %s to %s failed %d, just DEBUG MESSAGE here", + originPath, destinationPath, errno); ret = mount(NULL, destinationPath, NULL, MS_PRIVATE, NULL); APPSPAWN_CHECK(ret == 0, return ret, "private mount to %s failed %d", destinationPath, errno); #endif @@ -367,11 +367,10 @@ int SandboxUtils::DoAllMntPointsMount(const ClientSocket::AppProperty *appProper } } if (ret) { - APPSPAWN_LOGE("DoAppSandboxMountOnce failed, %s", sandboxPath.c_str()); - std::string actionStatus = STATUS_CHECK; (void)JsonUtils::GetStringFromJson(mntPoint, ACTION_STATUS, actionStatus); if (actionStatus == STATUS_CHECK) { + APPSPAWN_LOGE("DoAppSandboxMountOnce failed, %s", sandboxPath.c_str()); return ret; } } -- Gitee