e_fm: move should compare both paths totally.

Comparing just until the strlen(p2) won't allow to move an inner directory to
a parent directory.



SVN revision: 59948
This commit is contained in:
Rafael Antognolli 2011-06-04 05:19:01 +00:00
parent f39de9a48e
commit 65d7934e30
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ main(int argc, char **argv)
/* Don't move a dir into itself */
if (ecore_file_is_dir(p) &&
(strncmp(p, p2, p2_len) == 0) &&
(strncmp(p, p2, PATH_MAX) == 0) &&
((p[p2_len] == '/') || (p[p2_len] == '\0')))
goto skip_arg;