]> www.infradead.org Git - users/dwmw2/linux.git/commit
ufs: fix braino in ufs_get_inode_gid() for solaris UFS flavour
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 2 May 2019 02:46:11 +0000 (22:46 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 13 Aug 2019 11:39:19 +0000 (12:39 +0100)
commit7c2c1c91af0139b30adffa9a738c7a6ade08d457
treebd7b8d4744d2380a4e5b2cc93ed49b35d636e25a
parente4fa924b76b937592f80c934f6500bbcc81ea63a
ufs: fix braino in ufs_get_inode_gid() for solaris UFS flavour

commit 4e9036042fedaffcd868d7f7aa948756c48c637d upstream.

To choose whether to pick the GID from the old (16bit) or new (32bit)
field, we should check if the old gid field is set to 0xffff.  Mainline
checks the old *UID* field instead - cut'n'paste from the corresponding
code in ufs_get_inode_uid().

Fixes: 252e211e90ce
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/ufs/util.h