Merge branch 'tizen_5.5' into tizen 81/228581/1 accepted/tizen/unified/20200324.101512 submit/tizen/20200324.050651
authorInHong Han <inhong1.han@samsung.com>
Tue, 24 Mar 2020 04:45:39 +0000 (13:45 +0900)
committerInHong Han <inhong1.han@samsung.com>
Tue, 24 Mar 2020 04:45:39 +0000 (13:45 +0900)
Change-Id: Ie7a2e632d4c49420b394702302b81f3117e7cddb

packaging/capi-ui-sticker.spec
server/stickerd_data_manager.c

index 442c769..ecf1cd0 100644 (file)
@@ -104,6 +104,7 @@ make %{?jobs:-j%jobs}
 
 %if 0%{?gcov:1}
 mkdir -p gcov-obj
+find . -name '*_dbus.c.gcno' -exec rm {} \;
 find . -name '*.gcno' -exec cp '{}' gcov-obj ';'
 %endif
 
index 4f0b5b2..c97f50c 100644 (file)
@@ -441,7 +441,14 @@ static int _file_copy(const char *src, const char *dest)
 
     memset(buf, '\0', 4096);
     fd = open(src, O_RDONLY);
+    if (fd == -1) {
+        LOGE("Failed to open file (%s) for reading", src);
+    }
+
     n_fd = open(dest, O_WRONLY | O_CREAT | O_TRUNC, 0755);
+    if (n_fd == -1) {
+        LOGE("Failed to open file (%s) for writing", dest);
+    }
 
     if (fd == -1 || n_fd == -1) {
         tmp_err = errno;