From 57250a960276be78aabd8273fe01b9379fcd8fa1 Mon Sep 17 00:00:00 2001 From: guohao15 Date: Mon, 27 May 2024 11:07:21 +0800 Subject: [PATCH] inotify: use nx_stat instead of stat Signed-off-by: guohao15 --- 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;