From: Christof Schmitt Date: Mon, 30 Dec 2019 22:20:05 +0000 (-0700) Subject: vfs_gpfs: Remove check for open file in share mode function X-Git-Tag: ldb-2.1.0~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=208007b86c407e98a796dfae30affade05abe4f7;p=thirdparty%2Fsamba.git vfs_gpfs: Remove check for open file in share mode function The calling code already ensures that the file is open with a valid file descriptor. Signed-off-by: Christof Schmitt Reviewed-by: Jeremy Allison --- diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 0825b71e634..dff2f204df3 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -84,11 +84,6 @@ static bool set_gpfs_sharemode(files_struct *fsp, uint32_t access_mask, unsigned int deny = GPFS_DENY_NONE; int result; - if ((fsp == NULL) || (fsp->fh == NULL) || (fsp->fh->fd < 0)) { - /* No real file, don't disturb */ - return True; - } - allow |= (access_mask & (FILE_WRITE_DATA|FILE_APPEND_DATA)) ? GPFS_SHARE_WRITE : 0; allow |= (access_mask & (FILE_READ_DATA|FILE_EXECUTE)) ?