diff options
author | Marc Dionne <marc.dionne@auristor.com> | 2017-03-16 16:27:43 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-20 10:04:55 +0100 |
commit | bb7a7cd6194f9d1f789ce4f83a086024bc93941f (patch) | |
tree | d8df9faf60bc857e555b9c5df2c67f2944efa062 /fs | |
parent | 1c277e9ebba6ee648b70e4dc4794e67c3d2d80cd (diff) | |
download | linux-stable-bb7a7cd6194f9d1f789ce4f83a086024bc93941f.tar.gz linux-stable-bb7a7cd6194f9d1f789ce4f83a086024bc93941f.tar.bz2 linux-stable-bb7a7cd6194f9d1f789ce4f83a086024bc93941f.zip |
afs: Populate group ID from vnode status
[ Upstream commit 6186f0788b31f44affceeedc7b48eb10faea120d ]
The group was hard coded to GLOBAL_ROOT_GID; use the group
ID that was received from the server.
Signed-off-by: Marc Dionne <marc.dionne@auristor.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/afs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/afs/inode.c b/fs/afs/inode.c index e06f5a23352a..9580456e8902 100644 --- a/fs/afs/inode.c +++ b/fs/afs/inode.c @@ -69,7 +69,7 @@ static int afs_inode_map_status(struct afs_vnode *vnode, struct key *key) set_nlink(inode, vnode->status.nlink); inode->i_uid = vnode->status.owner; - inode->i_gid = GLOBAL_ROOT_GID; + inode->i_gid = vnode->status.group; inode->i_size = vnode->status.size; inode->i_ctime.tv_sec = vnode->status.mtime_server; inode->i_ctime.tv_nsec = 0; |