]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/inotify.c
h63xx: tsc2101 alsa sound support
[linux-2.6-omap-h63xx.git] / fs / inotify.c
index 2fecb7af4a77d6316171f0e25a40fd9027a71647..3041503bde02f918382cacc49ec97275d1994b1f 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/list.h>
 #include <linux/writeback.h>
 #include <linux/inotify.h>
+#include <linux/syscalls.h>
 
 #include <asm/ioctls.h>
 
@@ -966,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;