summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-06-24 19:12:11 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-06-24 19:12:11 +0000
commit4f3b81d8f26b8c4ddeff6b82089efac435e75236 (patch)
tree459a68a54a2b88015feef961081258fbefd7c6e2 /libdiskfs
parent1fdcdda2a09e9e0bdfc3cd5615e711f600f300d1 (diff)
(diskfs_S_file_chown): Validate group change before making it.
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;