From: Ralph Wuerthner Date: Tue, 28 Jan 2020 14:33:47 +0000 (+0100) Subject: vfs_gpfs: Remove discard_const_p() from gpfswrap_quotactl() calls X-Git-Tag: ldb-2.1.1~209 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=508ae8ee7a25eb39a3b5788f0b90cc1e91629e6b;p=thirdparty%2Fsamba.git vfs_gpfs: Remove discard_const_p() from gpfswrap_quotactl() calls Signed-off-by: Ralph Wuerthner Reviewed-by: Christof Schmitt Reviewed-by: Gary Lockyer --- diff --git a/source3/modules/vfs_gpfs.c b/source3/modules/vfs_gpfs.c index 1c843db503d..f76dcc015a6 100644 --- a/source3/modules/vfs_gpfs.c +++ b/source3/modules/vfs_gpfs.c @@ -417,7 +417,7 @@ static int gpfs_getacl_with_capability(const char *fname, int flags, void *buf) set_effective_capability(DAC_OVERRIDE_CAPABILITY); - ret = gpfswrap_getacl(discard_const_p(char, fname), flags, buf); + ret = gpfswrap_getacl(fname, flags, buf); saved_errno = errno; drop_effective_capability(DAC_OVERRIDE_CAPABILITY); @@ -478,8 +478,7 @@ again: if (use_capability) { ret = gpfs_getacl_with_capability(fname, flags, aclbuf); } else { - ret = gpfswrap_getacl(discard_const_p(char, fname), - flags, aclbuf); + ret = gpfswrap_getacl(fname, flags, aclbuf); if ((ret != 0) && (errno == EACCES)) { DBG_DEBUG("Retry with DAC capability for %s\n", fname); use_capability = true;