summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/file-chown.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdiskfs/file-chown.c b/libdiskfs/file-chown.c
index 626640ae..a0c4f225 100644
--- a/libdiskfs/file-chown.c
+++ b/libdiskfs/file-chown.c
@@ -36,6 +36,8 @@ diskfs_S_file_chown (struct protid *cred,
{
err = diskfs_validate_owner_change (np, uid);
if (!err)
+ err = diskfs_validate_group_change (np, gid);
+ if (!err)
{
np->dn_stat.st_uid = uid;
np->dn_stat.st_gid = gid;