]> git.karo-electronics.de Git - karo-tx-linux.git/commit
inotify: fix check for one-shot watches before destroying them
authorUlisses Furquim <ulissesf@gmail.com>
Fri, 8 Feb 2008 12:18:16 +0000 (04:18 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Feb 2008 00:18:32 +0000 (16:18 -0800)
commit0cc3ec3d1add90d860786382dc5abe7ca94d242e
treee35c8f7e33878f2b76b96d31d3b600c444bea34b
parenta1a0d79533b9698b3a40d0091fe69a86386d44bb
inotify: fix check for one-shot watches before destroying them

patch ac74c00e499ed276a965e5b5600667d5dc04a84a in mainline.

As the IN_ONESHOT bit is never set when an event is sent we must check it
in the watch's mask and not in the event's mask.

Signed-off-by: Ulisses Furquim <ulissesf@gmail.com>
Reported-by: "Clem Taylor" <clem.taylor@gmail.com>
Tested-by: "Clem Taylor" <clem.taylor@gmail.com>
Cc: Amy Griffis <amy.griffis@hp.com>
Cc: Robert Love <rlove@google.com>
Cc: John McCutchan <ttb@tentacle.dhs.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/inotify_user.c