diff options
author | Marc Dionne <marc.dionne@auristor.com> | 2017-03-16 17:27:43 +0100 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2017-03-16 17:27:43 +0100 |
commit | 6186f0788b31f44affceeedc7b48eb10faea120d (patch) | |
tree | 26e96a748c6b12116d3168362a192644efe126f1 /fs | |
parent | afs: Fix page overput in afs_fill_page() (diff) | |
download | linux-6186f0788b31f44affceeedc7b48eb10faea120d.tar.xz linux-6186f0788b31f44affceeedc7b48eb10faea120d.zip |
afs: Populate group ID from vnode status
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>
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 1e4897a048d2..299dbaeb2e2a 100644 --- a/fs/afs/inode.c +++ b/fs/afs/inode.c @@ -70,7 +70,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; |