mirror of https://github.com/RT-Thread/rt-thread
fix mkdir error code. (#7944)
This commit is contained in:
parent
deb0b031fc
commit
1b5ed06d38
|
@ -676,7 +676,7 @@ int mkdir(const char *path, mode_t mode)
|
||||||
|
|
||||||
if (path && dfs_file_lstat(path, &stat) == 0)
|
if (path && dfs_file_lstat(path, &stat) == 0)
|
||||||
{
|
{
|
||||||
rt_set_errno(-RT_ERROR);
|
rt_set_errno(-EEXIST);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue