mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[PATCH] inotify: fix one-shot support
Fix one-shot support in inotify. We currently drop the IN_ONESHOT flag during watch addition. Fix is to not do that. Signed-off-by: Robert Love <[email protected]> Cc: John McCutchan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
8e08b75686
commit
b5173119ff
1 changed files with 1 additions and 1 deletions
|
|
@ -967,7 +967,7 @@ asmlinkage long sys_inotify_add_watch(int fd, const char __user *path, u32 mask)
|
|||
mask_add = 1;
|
||||
|
||||
/* don't let user-space set invalid bits: we don't want flags set */
|
||||
mask &= IN_ALL_EVENTS;
|
||||
mask &= IN_ALL_EVENTS | IN_ONESHOT;
|
||||
if (unlikely(!mask)) {
|
||||
ret = -EINVAL;
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in a new issue