diff --git a/src/sys/setpag.c b/src/sys/setpag.c index 169dafa983..8a36af5291 100644 --- a/src/sys/setpag.c +++ b/src/sys/setpag.c @@ -57,7 +57,12 @@ lsetpag(void) if(rval) errcode = syscall(AFS_SYSCALL, AFSCALL_SETPAG); #elif defined(AFS_DARWIN80_ENV) - errcode = ioctl_afs_syscall(AFSCALL_SETPAG,0,0,0,0,0,0,&errcode); + int rval; + + rval = ioctl_afs_syscall(AFSCALL_SETPAG,0,0,0,0,0,0,&errcode); + if (rval) { + errorcode = rval; + } #else errcode = syscall(AFS_SYSCALL, AFSCALL_SETPAG); #endif