提交 8fa5763a 编写于 作者: Y yangjian

feat: fix realpath return errno issue

Signed-off-by: Nyangjian <jianyang@bestechnic.com>
Change-Id: I1ee933bb572c35a9406ea7f449608ec47ef1a21b
上级 a9560856
......@@ -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.
先完成此消息的编辑!
想要评论请 注册