浏览代码

fix chdir for ash's cd (#8824)

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 */
         dfs_unlock();
 
+        rt_set_errno(-ENOTDIR);
         return -1;
     }