[OpenAFS-port-darwin] fs listaliases broken?

David Botsch dwb7@ccmr.cornell.edu
Mon, 20 Feb 2006 14:26:52 -0500


Whups... meant to send to list.

fs listcells and fs listaliases both seem to be fixed with this patch.

On Mon, Feb 20, 2006 at 01:32:37PM -0500, Chaskiel M Grundman wrote:
> 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
> 
> _______________________________________________
> port-darwin mailing list
> port-darwin@openafs.org
> https://lists.openafs.org/mailman/listinfo/port-darwin

-- 
********************************
David William Botsch
Consultant/Advisor II
CCMR Computing Facility
dwb7@ccmr.cornell.edu
********************************