From: Derrick Brashear Date: Thu, 22 May 2003 16:17:29 +0000 (+0000) Subject: STABLE12-revert-pioctl-return-negative-errors-on-linux-20030522 X-Git-Tag: openafs-stable-1_2_10~54 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=dda4bc3e799ed16deef0875f0ca4c6dd53b481b5;p=packages%2Fo%2Fopenafs.git STABLE12-revert-pioctl-return-negative-errors-on-linux-20030522 syscall stub handles it. this is actually an overflow on 64 bit system (cherry picked from commit 20656c4a44c4ae294e99eaa60cf8137a2fda51d3) --- diff --git a/src/afs/afs_pioctl.c b/src/afs/afs_pioctl.c index 74f33c27f..6cf43588c 100644 --- a/src/afs/afs_pioctl.c +++ b/src/afs/afs_pioctl.c @@ -1028,17 +1028,13 @@ afs_syscall_pioctl(path, com, cmarg, follow) #endif } PIOCTL_FREE_CRED(); -#ifdef AFS_LINUX22_ENV - return -code; -#else -#if defined(AFS_SUN5_ENV) || defined(AFS_OSF_ENV) || defined(AFS_SGI64_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV) +#if defined(AFS_SUN5_ENV) || defined(AFS_OSF_ENV) || defined(AFS_SGI64_ENV) || defined(AFS_LINUX22_ENV) || defined(AFS_DARWIN_ENV) || defined(AFS_FBSD_ENV) return (code); #else if (!getuerror()) setuerror(code); return (getuerror()); #endif -#endif }