git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
580f1ff
)
pioctl-return-negative-errors-on-linux-20030522
author
Derrick Brashear
<shadow@dementia.org>
Thu, 22 May 2003 15:22:18 +0000 (15:22 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Thu, 22 May 2003 15:22:18 +0000 (15:22 +0000)
otherwise we can end up with errors that make no sense.
src/afs/afs_pioctl.c
patch
|
blob
|
history
diff --git
a/src/afs/afs_pioctl.c
b/src/afs/afs_pioctl.c
index
f9120ca
..
230ad5e
100644
(file)
--- a/
src/afs/afs_pioctl.c
+++ b/
src/afs/afs_pioctl.c
@@
-1012,6
+1012,9
@@
afs_syscall_pioctl(path, com, cmarg, follow)
#endif
}
PIOCTL_FREE_CRED();
+#ifdef AFS_LINUX22_ENV
+ return -code;
+#else
#if defined(KERNEL_HAVE_UERROR)
if (!getuerror())
setuerror(code);
@@
-1019,6
+1022,7
@@
afs_syscall_pioctl(path, com, cmarg, follow)
#else
return (code);
#endif
+#endif
}