From 12b579bac09afc91c2fdaefd2ffb8b3301e6d5fd Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Wed, 16 Jan 2013 02:22:10 +0400 Subject: [PATCH] fsnotify: fanotify -- Take into accout global flag assigned to fanotify object Just missed it in first place. Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- fsnotify.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fsnotify.c b/fsnotify.c index 982d73dbb..15d262e35 100644 --- a/fsnotify.c +++ b/fsnotify.c @@ -387,6 +387,7 @@ static int open_fanotify_fd(struct file_desc *d) info = container_of(d, struct fsnotify_file_info, d); + flags = info->ffe->faflags; if (info->ffe->flags & O_CLOEXEC) flags |= FAN_CLOEXEC; if (info->ffe->flags & O_NONBLOCK)