]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_gpfs: Remove discard_const_p() from gpfs_putacl() calls
authorRalph Wuerthner <ralph.wuerthner@de.ibm.com>
Tue, 28 Jan 2020 14:40:46 +0000 (15:40 +0100)
committerChristof Schmitt <cs@samba.org>
Mon, 3 Feb 2020 20:27:37 +0000 (20:27 +0000)
Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com>
Reviewed-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source3/modules/vfs_gpfs.c

index f76dcc015a6403a4ab4377c9f7e811b5307c3797..dd2725973c544b480debe1f1892d8dcd88867869 100644 (file)
@@ -1325,8 +1325,9 @@ static int gpfsacl_sys_acl_set_file(vfs_handle_struct *handle,
                return -1;
        }
 
-       result = gpfswrap_putacl(discard_const_p(char, smb_fname->base_name),
-                                GPFS_PUTACL_STRUCT|GPFS_ACL_SAMBA, gpfs_acl);
+       result = gpfswrap_putacl(smb_fname->base_name,
+                                GPFS_PUTACL_STRUCT|GPFS_ACL_SAMBA,
+                                gpfs_acl);
 
        SAFE_FREE(gpfs_acl);
        return result;