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;