diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-06-24 19:12:11 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-06-24 19:12:11 +0000 |
commit | 4f3b81d8f26b8c4ddeff6b82089efac435e75236 (patch) | |
tree | 459a68a54a2b88015feef961081258fbefd7c6e2 /libdiskfs | |
parent | 1fdcdda2a09e9e0bdfc3cd5615e711f600f300d1 (diff) |
(diskfs_S_file_chown): Validate group change before making it.
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/file-chown.c | 2 |
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; |