forked from enlightenment/efl
realpath returns null if the file doesn't exist.
SVN revision: 17444
This commit is contained in:
parent
0357fa2fe3
commit
fc3eccf033
|
@ -129,13 +129,8 @@ ecore_file_cp(const char *src, const char *dst)
|
||||||
char realpath2[PATH_MAX];
|
char realpath2[PATH_MAX];
|
||||||
size_t num;
|
size_t num;
|
||||||
|
|
||||||
if (realpath(src, realpath1) && realpath(dst, realpath2))
|
if (!realpath(src, realpath1)) return 0;
|
||||||
{
|
if (realpath(dst, realpath2) && !strcmp(realpath1, realpath2)) return 0;
|
||||||
if (!strcmp(realpath1, realpath2))
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
f1 = fopen(src, "rb");
|
f1 = fopen(src, "rb");
|
||||||
if (!f1) return 0;
|
if (!f1) return 0;
|
||||||
|
|
Loading…
Reference in New Issue