diff options
author | Ralph Wuerthner <ralph.wuerthner@de.ibm.com> | 2020-01-28 15:33:47 +0100 |
---|---|---|
committer | Christof Schmitt <cs@samba.org> | 2020-02-03 20:27:37 +0000 |
commit | 508ae8ee7a25eb39a3b5788f0b90cc1e91629e6b (patch) | |
tree | 30292002983aceebb34ae4a8577326ca7e3b377f /source3 | |
parent | bb0b31715f51d81c3d9cb065be36f1a629ab26dd (diff) | |
download | samba-508ae8ee7a25eb39a3b5788f0b90cc1e91629e6b.tar.gz |
vfs_gpfs: Remove discard_const_p() from gpfswrap_quotactl() 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.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; |