diff --git a/porting/liteos_m/kernel/src/misc/realpath.c b/porting/liteos_m/kernel/src/misc/realpath.c index 7efa5d2c80d718e70bdd796f11d0e874a19e2ad6..3a916b8b2a20d78bf76fdb4f13bd46f5e5e74b95 100755 --- a/porting/liteos_m/kernel/src/misc/realpath.c +++ b/porting/liteos_m/kernel/src/misc/realpath.c @@ -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; }