]> git.hungrycats.org Git - linux/commitdiff
Fix typo (and logic bug that the typo hid) in bit value
authorLinus Torvalds <torvalds@penguin.transmeta.com>
Tue, 15 Apr 2003 05:41:03 +0000 (22:41 -0700)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Tue, 15 Apr 2003 05:41:03 +0000 (22:41 -0700)
testing.

Found by 'sparse', my source parser tool.

include/linux/nfsd/nfsd.h

index 6efd989a11d6203c8f597ba9c07105698d7755f6..f4b278437cf45e4dfe8caaca8a9820cc2f01cb13 100644 (file)
@@ -39,7 +39,7 @@
 #define MAY_LOCK               32
 #define MAY_OWNER_OVERRIDE     64
 #define        MAY_LOCAL_ACCESS        128 /* IRIX doing local access check on device special file*/
-#if (MAY_SATTR | MAY_TRUNC | MAY_LOCK | MAX_OWNER_OVERRIDE | MAY_LOCAL_ACCESS) & (MAY_READ | MAY_WRITE | MAY_EXEC | MAY_OWNER_OVERRIDE)
+#if (MAY_SATTR | MAY_TRUNC | MAY_LOCK | MAY_OWNER_OVERRIDE | MAY_LOCAL_ACCESS) & (MAY_READ | MAY_WRITE | MAY_EXEC)
 # error "please use a different value for MAY_SATTR or MAY_TRUNC or MAY_LOCK or MAY_OWNER_OVERRIDE."
 #endif
 #define MAY_CREATE             (MAY_EXEC|MAY_WRITE)