]> err.no Git - linux-2.6/blobdiff - fs/inotify_user.c
[patch 05/14] hpfs: dont call permission()
[linux-2.6] / fs / inotify_user.c
index dc7e1f61974812cb81b8e4d07207e787b6ecbba2..fe79c25d95dc9c630649aec8485b784bbb34d49c 100644 (file)
@@ -574,6 +574,10 @@ asmlinkage long sys_inotify_init1(int flags)
        struct file *filp;
        int fd, ret;
 
+       /* Check the IN_* constants for consistency.  */
+       BUILD_BUG_ON(IN_CLOEXEC != O_CLOEXEC);
+       BUILD_BUG_ON(IN_NONBLOCK != O_NONBLOCK);
+
        if (flags & ~(IN_CLOEXEC | IN_NONBLOCK))
                return -EINVAL;