patch-2.4.26 linux-2.4.26/fs/xfs/linux/xfs_iops.c
Next file: linux-2.4.26/fs/xfs/linux/xfs_linux.h
Previous file: linux-2.4.26/fs/xfs/linux/xfs_ioctl.c
Back to the patch index
Back to the overall index
-  Lines: 10
-  Date:
2004-04-14 06:05:40.000000000 -0700
-  Orig file: 
linux-2.4.25/fs/xfs/linux/xfs_iops.c
-  Orig date: 
2004-02-18 05:36:31.000000000 -0800
diff -urN linux-2.4.25/fs/xfs/linux/xfs_iops.c linux-2.4.26/fs/xfs/linux/xfs_iops.c
@@ -616,8 +616,7 @@
 
 	if (!size)
 		xflags |= ATTR_KERNOVAL;
-	if (capable(CAP_SYS_ADMIN))
-		xflags |= ATTR_KERNFULLS;
+	xflags |= capable(CAP_SYS_ADMIN) ? ATTR_KERNFULLS : ATTR_KERNORMALS;
 
 	error = attr_generic_list(vp, data, size, xflags, &result);
 	if (error < 0)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)