Add return value checking routine 84/224384/1
authorJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 10 Feb 2020 07:33:29 +0000 (16:33 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Mon, 10 Feb 2020 07:33:29 +0000 (16:33 +0900)
Change-Id: Ibc4b9ed32dd5c908e3ec5976a1e364ba11fed87e
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
src/wgt/step/filesystem/step_create_wgt_symbolic_link.cc

index d234494..8581504 100644 (file)
@@ -40,7 +40,8 @@ bool StepCreateWgtSymbolicLink::CreateSymlinksForApps() {
       continue;
     // binary is a symbolic link named <appid> and is located in <pkgid>/<appid>
     bf::path exec_path = context_->GetPkgPath() / bf::path("bin");
-    common_installer::CreateDir(exec_path);
+    if (!common_installer::CreateDir(exec_path))
+      return false;
 
     exec_path /= bf::path(app->appid);
     common_installer::RemoveAll(exec_path);