quotas: Check group quota for directory when SGID is set
commit02b7e6c79b866ba0d339cad6c4fc9eb0d0be8968
authorChristof Schmitt <cs@samba.org>
Tue, 13 Aug 2019 20:40:48 +0000 (13 13:40 -0700)
committerChristof Schmitt <cs@samba.org>
Wed, 14 Aug 2019 16:27:43 +0000 (14 16:27 +0000)
tree76713d92cde7ecb65f4573baf969c8abdae91e50
parent9b7825d2d387bcb2515154418a990669ab96358d
quotas: Check group quota for directory when SGID is set

On directories with the "set group id" (SGID) bit is set, new files and
subfolders will be created with the group of the directory, and not with
the primary group of the user. Checking for free space in this case
should query the group quota for the gid of the directory.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/smbd/quotas.c