From: Dmitry V. L. <ld...@al...> - 2010-12-04 00:06:23
|
On Fri, Dec 03, 2010 at 02:59:29AM +0300, Dmitry V. Levin wrote: > On Wed, Dec 01, 2010 at 02:42:37PM +0100, Arkadiusz Miśkiewicz wrote: > > Decode struct ucred (pid, uid, gid) for getsockopt() with SO_PEERCRED. > [...] > > + tprintf("{pid=%lu, uid=%lu, gid=%lu}, " > > + "[%d]", > > + ucred.pid, > > + ucred.uid, > > + ucred.gid, > > + len); > > I think all these integers are rather signed than unsigned. > There is a code in this file already that decodes struct ucred, > it treats all these struct fields as signed integers. I've applied my edition of the patch to address this issue. -- ldv |