Skip to content

Commit 6186f07

Browse files
Marc Dionnedhowells
authored andcommitted
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>
1 parent 5611ef2 commit 6186f07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/afs/inode.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ static int afs_inode_map_status(struct afs_vnode *vnode, struct key *key)
7070

7171
set_nlink(inode, vnode->status.nlink);
7272
inode->i_uid = vnode->status.owner;
73-
inode->i_gid = GLOBAL_ROOT_GID;
73+
inode->i_gid = vnode->status.group;
7474
inode->i_size = vnode->status.size;
7575
inode->i_ctime.tv_sec = vnode->status.mtime_server;
7676
inode->i_ctime.tv_nsec = 0;

0 commit comments

Comments
 (0)