summaryrefslogtreecommitdiff
path: root/0002-2156-Fix-sandbox-error-logging.patch
blob: b6914b45833b2db920f4139e44f2c920f5fd8140 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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