fix mkdir error code. (#7944)

This commit is contained in:
geniusgogo 2023-08-12 10:50:15 +08:00 committed by GitHub
parent deb0b031fc
commit 1b5ed06d38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}