]> git.baikalelectronics.ru Git - kernel.git/commit
fanotify: Fix up scripted S_ISDIR/S_ISREG/S_ISLNK conversions
authorDavid Howells <dhowells@redhat.com>
Thu, 29 Jan 2015 12:02:36 +0000 (12:02 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 22 Feb 2015 16:38:42 +0000 (11:38 -0500)
commit2d1f7fd35705e07e31508465ee31ae848a20c51d
tree8d1cf4e87856eba3772b466ad4b145218b2f9c79
parentdab0d0b2fb931131b7a85670ebfb6ee9373c7ab2
fanotify: Fix up scripted S_ISDIR/S_ISREG/S_ISLNK conversions

Fanotify probably doesn't want to watch autodirs so make it use d_can_lookup()
rather than d_is_dir() when checking a dir watch and give an error on fake
directories.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/notify/fanotify/fanotify.c