Merge branch 'tizen_5.5' into tizen 27/233027/2
authorInHong Han <inhong1.han@samsung.com>
Tue, 12 May 2020 04:43:27 +0000 (13:43 +0900)
committerInHong Han <inhong1.han@samsung.com>
Tue, 12 May 2020 04:43:27 +0000 (13:43 +0900)
Change-Id: I6372c055249dd2a845fa36f8f1992ec964d59c13

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

index fa59d3f..1fbe232 100644 (file)
@@ -107,6 +107,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 c731971..f81305d 100644 (file)
@@ -480,7 +480,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;