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

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)