summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/ecore_file/ecore_file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_file/ecore_file.c b/src/lib/ecore_file/ecore_file.c
index 7a42cb2391..634709f048 100644
--- a/src/lib/ecore_file/ecore_file.c
+++ b/src/lib/ecore_file/ecore_file.c
@@ -591,7 +591,8 @@ ecore_file_mv(const char *src, const char *dst)
591 591
592 // Make sure this is a regular file before 592 // Make sure this is a regular file before
593 // we do anything fancy. 593 // we do anything fancy.
594 stat(src, &st); 594 if (stat(src, &st) == -1)
595 goto FAIL;
595 if (S_ISREG(st.st_mode)) 596 if (S_ISREG(st.st_mode))
596 { 597 {
597 char *dir; 598 char *dir;