OpenAFS Master Repository branch, openafs-stable-1_6_x, updated. openafs-devel-1_5_77-20-g1ac380b
Gerrit Code Review
gerrit@openafs.org
Mon, 27 Sep 2010 08:28:50 -0700 (PDT)
The following commit has been merged in the openafs-stable-1_6_x branch:
commit 1ac380b0d39fc0a4657ff134b0ef2d9bb63af3f1
Author: Andrew Deason <adeason@sinenomine.net>
Date: Wed Sep 15 12:19:33 2010 -0400
libafs: Fix pioctl get/putInt alignment issues
We don't know if the buffer for pioctl data is aligned to anything, so
we can't just dereference the given pointer as an int or anything
else. So, just memcpy the data in for ints and such; conveniently,
afs_pd_getBytes and afs_pd_putBytes can do this for us, so just use
that.
Change-Id: Id1abdae55308db6fe1e13f541a5d776daa6af934
Reviewed-on: http://gerrit.openafs.org/2763
Tested-by: Andrew Deason <adeason@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit 8fd83543b60aefb4b7c5a0116d1538a89f58bbb3)
Reviewed-on: http://gerrit.openafs.org/2801
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/afs_pioctl.c | 41 +++++++++++++++--------------------------
1 files changed, 15 insertions(+), 26 deletions(-)
--
OpenAFS Master Repository