forked from enlightenment/enlightenment
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:
parent
f39de9a48e
commit
65d7934e30
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue