Skip to content

Commit 596276c

Browse files
Anton SalikhmetovChristoph Hellwig
authored andcommitted
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>
1 parent 34a2d31 commit 596276c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/hfsplus/ioctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static int hfsplus_ioctl_getflags(struct file *file, int __user *user_flags)
2828

2929
if (inode->i_flags & S_IMMUTABLE)
3030
flags |= FS_IMMUTABLE_FL;
31-
if (inode->i_flags |= S_APPEND)
31+
if (inode->i_flags & S_APPEND)
3232
flags |= FS_APPEND_FL;
3333
if (hip->userflags & HFSPLUS_FLG_NODUMP)
3434
flags |= FS_NODUMP_FL;

0 commit comments

Comments
 (0)