From 65d7934e30a3ebe6a44c39ee526236955b0fe190 Mon Sep 17 00:00:00 2001 From: Rafael Antognolli Date: Sat, 4 Jun 2011 05:19:01 +0000 Subject: [PATCH] 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 --- src/bin/e_fm_op.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/e_fm_op.c b/src/bin/e_fm_op.c index c97ff7e37..f1163d817 100644 --- a/src/bin/e_fm_op.c +++ b/src/bin/e_fm_op.c @@ -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;