inotify: use nx_stat instead of stat
Signed-off-by: guohao15 <guohao15@xiaomi.com>
This commit is contained in:
parent
bf919afcbd
commit
57250a9602
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue