Hi,

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.


-- 
ldv

Attachment: pgpR6dYwZ9CBK.pgp
Description: PGP signature

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to