提交 72540e74 编写于 作者: O openharmony_ci 提交者: Gitee

!170 feat: fix realpath return errno issue

Merge pull request !170 from besyangjian/master
......@@ -71,7 +71,7 @@ char *realpath(const char *__restrict path, char *__restrict resolved_path)
// LiteOS-M file system uses abs path, so we just stat path and strcpy it.
if (stat(path, &st) < 0) {
errno = EINVAL;
errno = ENOENT;
return NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册