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
This commit is contained in:
Andrii Kroitor 2014-08-27 19:45:26 +09:00 committed by ChunEon Park
parent 901d1343fd
commit 38147da036
1 changed files with 1 additions and 0 deletions

View File

@ -884,6 +884,7 @@ eina_file_copy(const char *src, const char *dst, Eina_File_Copy_Flags flags, Ein
end:
if (d >= 0) close(d);
else success = EINA_FALSE;
close(s);
if (!success)