[PATCH] Fix typo in #ifdef for ext2 xattr support

From: Stephen Smalley
Date: Tue Aug 26 2003 - 09:07:27 EST


This patch corrects a typo in an ifdef that enables xattr operations for
special files in the ext2 code; otherwise, extended attributes cannot be
obtained or set on such inodes.

fs/ext2/namei.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.5/fs/ext2/namei.c
===================================================================
RCS file: /nfshome/pal/CVS/linux-2.5/fs/ext2/namei.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 namei.c
--- linux-2.5/fs/ext2/namei.c 11 Jul 2003 14:20:17 -0000 1.1.1.2
+++ linux-2.5/fs/ext2/namei.c 25 Aug 2003 16:57:27 -0000
@@ -143,7 +143,7 @@
int err = PTR_ERR(inode);
if (!IS_ERR(inode)) {
init_special_inode(inode, inode->i_mode, rdev);
-#ifdef CONFIG_EXT2_FS_EXT_ATTR
+#ifdef CONFIG_EXT2_FS_XATTR
inode->i_op = &ext2_special_inode_operations;
#endif
mark_inode_dirty(inode);


--
Stephen Smalley <sds@xxxxxxxxxxxxxx>
National Security Agency

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/