forked from enlightenment/efl
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:
parent
901d1343fd
commit
38147da036
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue