From 95215f3930bea549c8b91e1e0cb6c2f73d074bc0 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 (cherry picked from commit 127f728d58e79a42f8826500e3b15c486e88e556) --- 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 f6f162b3b57..7642c647afb 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -1474,7 +1474,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; @@ -1980,7 +1980,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