From: Szymon Jastrzebski Date: Tue, 30 Jan 2018 08:12:30 +0000 (+0100) Subject: [Iotcon] Synchronously checking access to file X-Git-Tag: submit/tizen/20180427.125243~12^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F11%2F168711%2F3;p=platform%2Fcore%2Fapi%2Fwebapi-plugins.git [Iotcon] Synchronously checking access to file ACR: http://suprem.sec.samsung.net/jira/browse/TWDAPI-187 Change-Id: I83ded470ff06f40065879667d4f43fba8356c7d7 Signed-off-by: Szymon Jastrzebski --- diff --git a/src/iotcon/iotcon_instance.cc b/src/iotcon/iotcon_instance.cc index 705fb1f5..8339a488 100644 --- a/src/iotcon/iotcon_instance.cc +++ b/src/iotcon/iotcon_instance.cc @@ -1806,6 +1806,8 @@ common::TizenResult IotconInstance::Initialize(const picojson::object& args) { std::string realPath = common::FilesystemProvider::Create().GetRealPath(filePath.get()); + CHECK_STORAGE_ACCESS_AND_RETURN(realPath); + auto result = IotconUtils::ConvertIotconError(iotcon_initialize(realPath.c_str())); if (!result) { LogAndReturnTizenError(result);