From 5ccb559d8a9109c42f99e9f2c1b1dc8214c8e499 Mon Sep 17 00:00:00 2001 From: Christof Schmitt Date: Mon, 21 Mar 2022 09:26:41 -0700 Subject: [PATCH] vfs_gpfs: Initialize litemask to 0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The change from commit fb13c7c94f to query exact values for atime, mtime, ctime and size is not necessary, as none of these are used in this codepath. Initiale litemask to 0 instead. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15027 Signed-off-by: Christof Schmitt Reviewed-by: Ralph Boehme Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Mon Mar 28 09:10:58 UTC 2022 on sn-devel-184 --- 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 4d1cfa6075a..70b8c7b903e 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -1478,7 +1478,7 @@ static NTSTATUS vfs_gpfs_fget_dos_attributes(struct vfs_handle_struct *handle, char buf[PATH_MAX]; const char *p = NULL; struct gpfs_iattr64 iattr = { }; - unsigned int litemask; + unsigned int litemask = 0; struct timespec ts; uint64_t file_id; NTSTATUS status; @@ -1984,7 +1984,7 @@ static int vfs_gpfs_check_pathref_fstat_x(struct gpfs_config_data *config, struct connection_struct *conn) { struct gpfs_iattr64 iattr = {0}; - unsigned int litemask; + unsigned int litemask = 0; int saved_errno; int fd; int ret; -- 2.27.0