DARWIN: Fix setpag syscall error detection
authorAndrew Deason <adeason@sinenomine.net>
Thu, 9 Dec 2010 19:02:16 +0000 (13:02 -0600)
committerDerrick Brashear <shadow@dementia.org>
Fri, 10 Dec 2010 19:41:57 +0000 (11:41 -0800)
commit9da7f3cc73bf990427a9dd80ba2bbbb618383ea3
tree4a2ce1d698e5746a6dfe285481fd87aa6c0f3dac
parentf46bba8611ceca7a6957b6aa9dee35990cae91f2
DARWIN: Fix setpag syscall error detection

Darwin uses the same variable as the return value for
ioctl_afs_syscall, and as the last 'out' parmater, so the return value
for ioctl_afs_syscall will always overwrite whatever is written to the
last 'out' parameter. Instead, record two different variables, and
allow the returned error to overridte the error set as the last
parameter.

Change-Id: I7db1b226612c55c892810ce446b486b7e503529c
Reviewed-on: http://gerrit.openafs.org/3497
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/sys/setpag.c