Commit 9a3ae4ab authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

fsnotify: print an error if a file can't be opened

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e23299b4
......@@ -435,8 +435,10 @@ static char *get_mark_path(const char *who, struct file_remap *remap,
} else
*target = open_handle(s_dev, i_ino, f_handle);
if (*target < 0)
if (*target < 0) {
pr_perror("Unable to open %s", f_handle->path);
goto err;
}
/*
* fanotify/inotify open syscalls want path to attach
......
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