From 19004113f3c1a16dc7bfda60402623efd115265a Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Wed, 23 Aug 2017 10:33:42 -0700 Subject: [PATCH] vfs_gpfs: Do not map DELETE sharemode access to WRITE A SMB client can deny the WRITE sharemode, but still grant the DELETE sharemode. Mapping the requested DELETE access to WRITE access breaks this case. Fix this by removing the incorrect mapping from DELETE access to WRITE access. Signed-off-by: Christof Schmitt Reviewed-by: Ralph Boehme --- source3/modules/vfs_gpfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index b2c92447f75..012b9331701 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -86,8 +86,8 @@ static bool set_gpfs_sharemode(files_struct *fsp, uint32_t access_mask, return True; } - allow |= (access_mask & (FILE_WRITE_DATA|FILE_APPEND_DATA| - DELETE_ACCESS)) ? GPFS_SHARE_WRITE : 0; + allow |= (access_mask & (FILE_WRITE_DATA|FILE_APPEND_DATA)) ? + GPFS_SHARE_WRITE : 0; allow |= (access_mask & (FILE_READ_DATA|FILE_EXECUTE)) ? GPFS_SHARE_READ : 0; -- 2.11.4.GIT