summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxiao-mang <[email protected]>2024-04-19 17:58:04 +0800
committerGitHub <[email protected]>2024-04-19 17:58:04 +0800
commitb50a53129f675fe747166c1b4db82b4cc8d12118 (patch)
tree8a6d2138eca8cb23093e7d1a10fd70f5f261cd42
parent61fac62521b81365e0d9eff0012510ff3d0fd876 (diff)
fix chdir for ash's cd (#8824)
-rw-r--r--components/dfs/dfs_v2/src/dfs_posix.c1
1 files changed, 1 insertions, 0 deletions
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;
}