2003-08-26 14:03:18

by Stephen Smalley

[permalink] [raw]
Subject: [PATCH] Fix typo in #ifdef for ext2 xattr support

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 <[email protected]>
National Security Agency