summaryrefslogtreecommitdiff
path: root/0002-2156-Fix-sandbox-error-logging.patch
diff options
context:
space:
mode:
Diffstat (limited to '0002-2156-Fix-sandbox-error-logging.patch')
-rw-r--r--0002-2156-Fix-sandbox-error-logging.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/0002-2156-Fix-sandbox-error-logging.patch b/0002-2156-Fix-sandbox-error-logging.patch
new file mode 100644
index 0000000..b6914b4
--- /dev/null
+++ b/0002-2156-Fix-sandbox-error-logging.patch
@@ -0,0 +1,28 @@
+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
+