inotify: use nx_stat instead of stat

Signed-off-by: guohao15 <guohao15@xiaomi.com>
This commit is contained in:
guohao15 2024-05-27 11:07:21 +08:00 committed by Xiang Xiao
parent bf919afcbd
commit 57250a9602
1 changed files with 1 additions and 1 deletions

View File

@ -1001,7 +1001,7 @@ int inotify_add_watch(int fd, FAR const char *pathname, uint32_t mask)
return ERROR;
}
ret = stat(abspath, &buf);
ret = nx_stat(abspath, &buf, 1);
if (ret < 0)
{
goto out_free;