From ea45cba9ee27e17182d440cd37e0c1cdf33b12f5 Mon Sep 17 00:00:00 2001 From: Ralph Wuerthner Date: Tue, 28 Jan 2020 15:40:46 +0100 Subject: [PATCH] vfs_gpfs: Remove discard_const_p() from gpfs_putacl() calls Signed-off-by: Ralph Wuerthner Reviewed-by: Christof Schmitt Reviewed-by: Gary Lockyer --- source3/modules/vfs_gpfs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index f76dcc015a6..dd2725973c5 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -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; -- 2.11.4.GIT