This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 57250a960276be78aabd8273fe01b9379fcd8fa1 Author: guohao15 <[email protected]> AuthorDate: Mon May 27 11:07:21 2024 +0800 inotify: use nx_stat instead of stat Signed-off-by: guohao15 <[email protected]> --- fs/notify/inotify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/notify/inotify.c b/fs/notify/inotify.c index c0a6045940..7ee6dc461d 100644 --- a/fs/notify/inotify.c +++ b/fs/notify/inotify.c @@ -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;
