vfs_gpfs: Initialize litemask to 0
authorChristof Schmitt <cs@samba.org>
Mon, 21 Mar 2022 16:26:41 +0000 (09:26 -0700)
committerRalph Boehme <slow@samba.org>
Mon, 28 Mar 2022 09:10:58 +0000 (09:10 +0000)
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 <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Mon Mar 28 09:10:58 UTC 2022 on sn-devel-184

source3/modules/vfs_gpfs.c

index 004c74cd43ae11699bc3fb7b67b1b116f5e9ac86..5ef1f5f2e739d09223238e4b263ecfd11b11d9a3 100644 (file)
@@ -1482,7 +1482,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 = GPFS_SLITE_EXACT_BITS;
+       unsigned int litemask = 0;
        struct timespec ts;
        uint64_t file_id;
        NTSTATUS status;
@@ -1988,7 +1988,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 = GPFS_SLITE_EXACT_BITS;
+       unsigned int litemask = 0;
        int saved_errno;
        int fd;
        int ret;