From dd236b2ea25472244eacd46165034d9a2627a3ea Mon Sep 17 00:00:00 2001 From: Junghyun Yeon Date: Wed, 26 Jan 2022 19:24:52 +0900 Subject: [PATCH] Add shared directory creation logic - Sometimes exception occured at current_path() due to absence of skel/pkgid/shared. Change-Id: I695abe33fcf790a6dfdd9af6e114dfff3ea5b5e3 Signed-off-by: Junghyun Yeon --- src/common/shared_dirs.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/shared_dirs.cc b/src/common/shared_dirs.cc index 8e83748..8d64368 100644 --- a/src/common/shared_dirs.cc +++ b/src/common/shared_dirs.cc @@ -161,7 +161,8 @@ bool DeleteSharedDataDirectories(const bf::path& path, bool CreateSharedDataDirectories(const bf::path& path, const std::string& pkgid) { if (!ci::CreateDir(path / kSharedDir / pkgid / kData) || - !ci::CreateDir(path / kSharedTmpDir / pkgid)) + !ci::CreateDir(path / kSharedTmpDir / pkgid) || + !ci::CreateDir(path / pkgid / kShared)) return false; bf::current_path(path / pkgid / kShared); -- 2.7.4