Subject: README: serious libc rpc bug fixed, you should update
To: None <current-users@netbsd.org>
From: Jason R Thorpe <thorpej@zembu.com>
List: current-users
Date: 06/04/2000 23:14:07
Folks...

If you've updated since the new TI-RPC code went into the tree, you
REALLY REALLY want to update your libc as soon as you can (i.e. as
soon as this hits your local anoncvs mirror).  It fixes a serious
bug that prevents programs from reliably communicating with rpcbind(8);
an uninitialized variable kept a necessary socket option from being
enabled.

----- Forwarded message from Jason R Thorpe <thorpej@netbsd.org> -----

To: source-changes@netbsd.org
Date: Sun, 4 Jun 2000 22:58:48 -0700 (PDT)
From: Jason R Thorpe <thorpej@netbsd.org>
Subject: CVS commit: basesrc


Module Name:	basesrc
Committed By:	thorpej
Date:		Mon Jun  5 05:58:47 UTC 2000

Modified Files:
	basesrc/lib/libc/rpc: svc_vc.c

Log Message:
- An initialized variable kept LOCAL_CREDS from being set on
  the listen socket properly.  This caused spurious rpcbind(8)
  failures.
- Don't define a "credmsg" structure.  Instead, dynamically
  allocate a buffer of the correct size of the message with
  CMSG_SPACE() and free it when we're done.  This gets the
  size of the buffer right on LP64 platforms, which has padding
  for alignment thrown in.
- Check for non-present or truncated cred messages when recvmsg(2)
  returns.


To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 basesrc/lib/libc/rpc/svc_vc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



----- End forwarded message -----

-- 
        -- Jason R. Thorpe <thorpej@zembu.com>