Jelajahi Sumber

hfsplus: fix an artifact in ioctl flag checking

Fix a flag checking artifact in hfsplus_ioctl_getflags() routine
found while doing clean-up against assignments inside `if's.

Signed-off-by: Anton Salikhmetov <alexo@tuxera.com>
Signed-off-by: Christoph Hellwig <hch@tuxera.com>
Anton Salikhmetov 14 tahun lalu
induk
melakukan
596276c357
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      fs/hfsplus/ioctl.c

+ 1 - 1
fs/hfsplus/ioctl.c

@@ -28,7 +28,7 @@ static int hfsplus_ioctl_getflags(struct file *file, int __user *user_flags)
 
 
 	if (inode->i_flags & S_IMMUTABLE)
 	if (inode->i_flags & S_IMMUTABLE)
 		flags |= FS_IMMUTABLE_FL;
 		flags |= FS_IMMUTABLE_FL;
-	if (inode->i_flags |= S_APPEND)
+	if (inode->i_flags & S_APPEND)
 		flags |= FS_APPEND_FL;
 		flags |= FS_APPEND_FL;
 	if (hip->userflags & HFSPLUS_FLG_NODUMP)
 	if (hip->userflags & HFSPLUS_FLG_NODUMP)
 		flags |= FS_NODUMP_FL;
 		flags |= FS_NODUMP_FL;