This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug nis/5854] New: yp_order always returns order 0


int
yp_order (const char *indomain, const char *inmap, unsigned int *outorder)
{
...
  result = do_ypcall_tr (indomain, YPPROC_ORDER, (xdrproc_t) xdr_ypreq_nokey,
                         (caddr_t) &req, (xdrproc_t) xdr_ypresp_order,
                         (caddr_t) &resp);

  if (result == YPERR_SUCCESS)  <=============
    return result;

  *outorder = resp.ordernum;
  xdr_free ((xdrproc_t) xdr_ypresp_order, (char *) &resp);

  return result;
}

That check should actually be !=.

I tested this by using the automounter and yppoll.  Autofs checks for map
updates using yp_order, and my tests were failing due to this bug.  I built libc
with the fix I describe and it resolves the problem for me.

This bug has been present for some time.  It is at least also applicable to 2.3.4.

-- 
           Summary: yp_order always returns order 0
           Product: glibc
           Version: 2.4
            Status: NEW
          Severity: normal
          Priority: P3
         Component: nis
        AssignedTo: kukuk at suse dot de
        ReportedBy: jmoyer at redhat dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=5854

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]