xiao-mang пре 1 година
родитељ
комит
b50a53129f
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      components/dfs/dfs_v2/src/dfs_posix.c

+ 1 - 0
components/dfs/dfs_v2/src/dfs_posix.c

@@ -1180,6 +1180,7 @@ int chdir(const char *path)
         /* this is a not exist directory */
         /* this is a not exist directory */
         dfs_unlock();
         dfs_unlock();
 
 
+        rt_set_errno(-ENOTDIR);
         return -1;
         return -1;
     }
     }