patch-2.1.102 linux/include/linux/capability.h

Next file: linux/include/linux/fs.h
Previous file: linux/include/asm-ppc/serial.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.101/linux/include/linux/capability.h linux/include/linux/capability.h
@@ -305,7 +305,7 @@
 #define cap_set_full(c)      do { (c).cap = ~0; } while(0)
 #define cap_mask(c,mask)     do { (c).cap &= (mask).cap; } while(0)
 
-#define cap_is_fs_cap(c)     ((c) & CAP_FS_MASK)
+#define cap_is_fs_cap(c)     (CAP_TO_MASK(c) & CAP_FS_MASK)
 
 #endif /* __KERNEL__ */
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov