[PATCH] nis/rpcsvc/yp.h: fix ypproc_first_2 declaration

GOTO Masanori gotom@debian.or.jp
Tue Mar 25 13:52:00 GMT 2003


At Tue, 25 Mar 2003 11:53:52 +0100,
Thorsten Kukuk wrote:
> > BTW, glibc nis/ypclnt.c line 408 has following code:
> > 
> >   result = do_ypcall (indomain, YPPROC_FIRST, (xdrproc_t) xdr_ypreq_nokey,
> >                       (caddr_t) & req, (xdrproc_t) xdr_ypresp_key_val,
> >                       (caddr_t) & resp);
> > 
> > Look at third argument.  Xargs are handled as xdr_ypreq_nokey.  This
> > is the reason why we need this patch.  I've attached new patch which
> > also includes fix for .x.
> 
> This defect is in the header files since the day Sun introduced YP
> and it was never fixed official. We are bug compatible with the
> official files from Sun in yp.[xh] and we  have a correct yp_prot.h
> like Sun has, too. I see no reason to modify yp.[xh], this
> will only introduce more confusion than it would help.

I understand why yp.[xh] should not be modified in glibc.
Thanks for your explanation!

Regards,
-- gotom



More information about the Libc-alpha mailing list