소스 검색

fix chdir for ash's cd (#8824)

xiao-mang 2 년 전
부모
커밋
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;
     }