summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRalph Wuerthner <ralph.wuerthner@de.ibm.com>2020-01-28 15:40:46 +0100
committerChristof Schmitt <cs@samba.org>2020-02-03 20:27:37 +0000
commitea45cba9ee27e17182d440cd37e0c1cdf33b12f5 (patch)
treea142e2f9ef94859432c3a442211ef775a12f5a3d /source3
parent508ae8ee7a25eb39a3b5788f0b90cc1e91629e6b (diff)
downloadsamba-ea45cba9ee27e17182d440cd37e0c1cdf33b12f5.tar.gz
vfs_gpfs: Remove discard_const_p() from gpfs_putacl() calls
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>
Diffstat (limited to 'source3')
-rw-r--r--source3/modules/vfs_gpfs.c5
1 files 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;