fix return value of romfs_stat for non-existent files/directories (#466)
This commit is contained in:
parent
bfc6ea48fb
commit
b559d93eda
@ -737,7 +737,7 @@ int romfs_stat(struct _reent *r, const char *path, struct stat *st)
|
|||||||
}
|
}
|
||||||
|
|
||||||
r->_errno = ENOENT;
|
r->_errno = ENOENT;
|
||||||
return 1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int romfs_chdir(struct _reent *r, const char *path)
|
int romfs_chdir(struct _reent *r, const char *path)
|
||||||
|
Loading…
Reference in New Issue
Block a user