From 2082a2d3d16592bd5e9363c3c692fc912ce7abd7 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Fri, 2 Apr 2010 01:29:22 -0400 Subject: [PATCH] macos 32 bit platform user address transform make the ioctl32 translator work as expected, e.g., create proper user addresses. Change-Id: Ia690dee5f9978d679e942a9954f2123df4a96bc2 Reviewed-on: http://gerrit.openafs.org/1687 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear (cherry picked from commit ec74299c7c0f6e705e6ba2329001b92f9941868e) --- src/afs/afs_pioctl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index 206d60ad21..7c0b2c1426 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -210,8 +210,13 @@ int afs_nobody = NFS_NOBODY; static void afs_ioctl32_to_afs_ioctl(const struct afs_ioctl32 *src, struct afs_ioctl *dst) { +#ifdef AFS_DARWIN100_ENV + dst->in = CAST_USER_ADDR_T(src->in); + dst->out = CAST_USER_ADDR_T(src->out); +#else dst->in = (char *)(unsigned long)src->in; dst->out = (char *)(unsigned long)src->out; +#endif dst->in_size = src->in_size; dst->out_size = src->out_size; }