Commit 12b579ba authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

fsnotify: fanotify -- Take into accout global flag assigned to fanotify object

Just missed it in first place.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 27c8a3cf
...@@ -387,6 +387,7 @@ static int open_fanotify_fd(struct file_desc *d) ...@@ -387,6 +387,7 @@ static int open_fanotify_fd(struct file_desc *d)
info = container_of(d, struct fsnotify_file_info, d); info = container_of(d, struct fsnotify_file_info, d);
flags = info->ffe->faflags;
if (info->ffe->flags & O_CLOEXEC) if (info->ffe->flags & O_CLOEXEC)
flags |= FAN_CLOEXEC; flags |= FAN_CLOEXEC;
if (info->ffe->flags & O_NONBLOCK) if (info->ffe->flags & O_NONBLOCK)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment