Add return value check 25/243525/1
authorJusung Son <jusung07.son@samsung.com>
Tue, 8 Sep 2020 02:00:36 +0000 (11:00 +0900)
committerJusung Son <jusung07.son@samsung.com>
Tue, 8 Sep 2020 02:00:36 +0000 (11:00 +0900)
Change-Id: I70f76343e6ebebddf0047cc7a95f4c4c5a3808c8
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
notification-ex/shared_file.cc

index c860fd1..eaef907 100644 (file)
@@ -533,7 +533,10 @@ int SharedFile::RemovePrivateSharing(list<shared_ptr<AbstractItem>> notiList,
           LOGE("Failed to remove shared_file(%s)", path_array[i]);
         }
       }
-      g_rmdir(sharing_data.dir.c_str());
+
+      if (g_rmdir(sharing_data.dir.c_str()) != 0)
+        LOGE("Failed to remove sharing directory(%s)(%d)",
+            sharing_data.dir.c_str(), errno);
     }
   }