ecore_file: get stat from correct file
authorVyacheslav Reutskiy <v.reutskiy@samsung.com>
Wed, 23 Nov 2016 14:06:43 +0000 (16:06 +0200)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 2 Jan 2017 07:23:55 +0000 (16:23 +0900)
Change-Id: Ic9fcffe8a3e73a58df1e0c0874b00aba1626334a
Signed-off-by: Vyacheslav Reutskiy <v.reutskiy@samsung.com>
src/lib/ecore_file/ecore_file.c

index 656d3df..4ddf04e 100644 (file)
@@ -350,7 +350,8 @@ ecore_file_recursive_rm(const char *dir)
 
    if (readlink(dir, buf, sizeof(buf) - 1) > 0)
      return ecore_file_unlink(dir);
-   if (!_ecore_file_stat(buf, NULL, NULL, NULL, &is_dir, NULL))
+
+   if (!_ecore_file_stat(dir, NULL, NULL, NULL, &is_dir, NULL))
      return EINA_FALSE;
 #else
    if (lstat(dir, &st) == -1)