From b50a53129f675fe747166c1b4db82b4cc8d12118 Mon Sep 17 00:00:00 2001 From: xiao-mang <53597406+xiao-mang@users.noreply.github.com> Date: Fri, 19 Apr 2024 17:58:04 +0800 Subject: [PATCH] fix chdir for ash's cd (#8824) --- components/dfs/dfs_v2/src/dfs_posix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/dfs/dfs_v2/src/dfs_posix.c b/components/dfs/dfs_v2/src/dfs_posix.c index 5ce8024ae5..ef6e8e78e5 100644 --- a/components/dfs/dfs_v2/src/dfs_posix.c +++ b/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; }