29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
From cc6302549b722a5c309c90794afe27b2e7e7b29e Mon Sep 17 00:00:00 2001
|
|
From: xuxuepeng <xuxuepeng1@huawei.com>
|
|
Date: Tue, 29 Aug 2023 13:18:13 +0000
|
|
Subject: [PATCH 02/33] !2156 Fix sandbox error logging * Fix sandbox error
|
|
logging
|
|
|
|
---
|
|
src/daemon/sandbox/sandbox.cc | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/daemon/sandbox/sandbox.cc b/src/daemon/sandbox/sandbox.cc
|
|
index 2433e11b..968dae24 100644
|
|
--- a/src/daemon/sandbox/sandbox.cc
|
|
+++ b/src/daemon/sandbox/sandbox.cc
|
|
@@ -581,8 +581,8 @@ auto Sandbox::Create(Errors &error) -> bool
|
|
|
|
nret = util_mkdir_p(m_rootdir.c_str(), CONFIG_DIRECTORY_MODE);
|
|
if (nret != 0 && errno != EEXIST) {
|
|
- error.Errorf("Failed to create sandbox path %s", m_rootdir);
|
|
- SYSERROR("Failed to create sandbox path %s", m_rootdir);
|
|
+ error.Errorf("Failed to create sandbox path %s", m_rootdir.c_str());
|
|
+ SYSERROR("Failed to create sandbox path %s", m_rootdir.c_str());
|
|
return false;
|
|
}
|
|
#ifdef ENABLE_USERNS_REMAP
|
|
--
|
|
2.40.1
|
|
|