]> git.kernelconcepts.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)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:22 +0000 (09:22 -0800)
commitac74c00e499ed276a965e5b5600667d5dc04a84a
tree81a34f797445a15b322ab48f9f69c272ef1e242d
parenta4ffc0a0b240a29cbe489f6db9dae112a49ef1c1
inotify: fix check for one-shot watches before destroying them

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>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/inotify_user.c