From: Sangyoon Jang Date: Thu, 15 Feb 2024 05:02:36 +0000 (+0900) Subject: Fix overlay mount for resource package X-Git-Tag: accepted/tizen/unified/20240220.115640~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e8be802e08d56cf2201c4f292f33d2b87b2a99d;p=platform%2Fcore%2Fappfw%2Flaunchpad.git Fix overlay mount for resource package The specified lower directories will be stacked beginning from the rightmost one and going left. Change-Id: Ifaec0366ed5f8e17e596bcbc61c82de345e358a6 Signed-off-by: Sangyoon Jang --- diff --git a/src/lib/launchpad-glib/util.cc b/src/lib/launchpad-glib/util.cc index 088f9c0e..99d5724a 100644 --- a/src/lib/launchpad-glib/util.cc +++ b/src/lib/launchpad-glib/util.cc @@ -257,9 +257,10 @@ class TepMountChecker : public DBus { int MountDirectories(const std::vector& srcs, const std::string& dest) { - std::string opt = "lowerdir=" + dest; + std::string opt = "lowerdir="; for (auto& src : srcs) - opt += ":" + src; + opt += src + ":"; + opt += dest; _D("mount opt: %s", opt.c_str()); int ret = mount(nullptr, dest.c_str(), "overlay", MS_RDONLY, opt.c_str());