summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrii Kroitor <an.kroitor@samsung.com>2014-08-27 19:45:26 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-08-27 19:47:52 +0900
commit5794becf79bff0e90a56de18fd28b23275713cd7 (patch)
tree4003221417c1e2da67cd0301976fbec7b645c523
parenta30bc6c18f47635c44807b7fd0a1c11888dde3c6 (diff)
eina_file: fixing wrong return value on access problems in file copy process
Summary: when dest directory is protected from writing success value was returned @fix Reviewers: seoz, cedric, Hermet Reviewed By: Hermet Subscribers: cedric, reutskiy.v.v Differential Revision: https://phab.enlightenment.org/D1366
-rw-r--r--src/lib/eina/eina_file_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eina/eina_file_common.c b/src/lib/eina/eina_file_common.c
index a81c67e..9b2539b 100644
--- a/src/lib/eina/eina_file_common.c
+++ b/src/lib/eina/eina_file_common.c
@@ -884,6 +884,7 @@ eina_file_copy(const char *src, const char *dst, Eina_File_Copy_Flags flags, Ein
884 884
885 end: 885 end:
886 if (d >= 0) close(d); 886 if (d >= 0) close(d);
887 else success = EINA_FALSE;
887 close(s); 888 close(s);
888 889
889 if (!success) 890 if (!success)