summaryrefslogtreecommitdiff
path: root/lib/set-permissions.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-06-05 11:47:37 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2015-06-05 17:15:11 -0700
commitecabc6b01567522dd542889c353a14f0c2e22f6e (patch)
treebec828ff190c3ff7e6657e191e075138e39fee45 /lib/set-permissions.c
parentd6176702c3ffb6c56e6620397470e1b3bd540b10 (diff)
downloadgnulib-ecabc6b01567522dd542889c353a14f0c2e22f6e.tar.gz
acl-permissions: more porting to AIX
* lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]: * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]: Add cast for AIX, whose system calls are declared to accept char * even though the arguments are really char const *. * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]: Rework types to pacify xlc.
Diffstat (limited to 'lib/set-permissions.c')
-rw-r--r--lib/set-permissions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/set-permissions.c b/lib/set-permissions.c
index ba291f316f..22368799f7 100644
--- a/lib/set-permissions.c
+++ b/lib/set-permissions.c
@@ -699,7 +699,7 @@ set_acls (struct permission_context *ctx, const char *name, int desc,
if (desc != -1)
ret = fchacl (desc, &ctx->u.a, ctx->u.a.acl_len);
else
- ret = chacl (name, &ctx->u.a, ctx->u.a.acl_len);
+ ret = chacl ((char *) name, &ctx->u.a, ctx->u.a.acl_len);
if (ret < 0)
{
if (errno == ENOSYS && from_mode)