fix chdir for ash's cd (#8824)

This commit is contained in:
xiao-mang 2024-04-19 17:58:04 +08:00 committed by GitHub
parent 61fac62521
commit b50a53129f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

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