[OpenAFS-port-darwin] fs listaliases broken?
Chaskiel M Grundman
cg2v@andrew.cmu.edu
Mon, 20 Feb 2006 13:32:37 -0500
Thanks for looking at this. With that push, I was able to find the problem.
This patch fixes it:
Index: src/sys/afssyscalls.c
===================================================================
RCS file: /cvs/openafs/src/sys/afssyscalls.c,v
retrieving revision 1.10.2.2
diff -u -d -r1.10.2.2 afssyscalls.c
--- src/sys/afssyscalls.c 15 Oct 2005 15:21:19 -0000 1.10.2.2
+++ src/sys/afssyscalls.c 20 Feb 2006 18:30:24 -0000
@@ -345,8 +345,9 @@
if(rval)
errcode = syscall(AFS_SYSCALL, AFSCALL_PIOCTL, path, cmd, cmarg,
follow);
#elif defined(AFS_DARWIN80_ENV)
- if
(ioctl_afs_syscall(AFSCALL_PIOCTL,(long)path,cmd,(long)cmarg,follow,0,0,&errcode))
- errcode=ENOSYS;
+ rval =
ioctl_afs_syscall(AFSCALL_PIOCTL,(long)path,cmd,(long)cmarg,follow,0,0,&errcode);
+ if (rval)
+ errcode=rval;
#else
errcode = syscall(AFS_SYSCALL, AFSCALL_PIOCTL, path, cmd, cmarg,
follow);
#endif