mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-20 17:44:20 +08:00
fix mkdir error code. (#7944)
This commit is contained in:
@@ -676,7 +676,7 @@ int mkdir(const char *path, mode_t mode)
|
||||
|
||||
if (path && dfs_file_lstat(path, &stat) == 0)
|
||||
{
|
||||
rt_set_errno(-RT_ERROR);
|
||||
rt_set_errno(-EEXIST);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user