Hi Hartmut, > +#if defined(SO_PEERCRED) ... > +#else > + /* Setting these to -1 means: do not change */ > + settings.clientUid = -1; > + settings.clientGid = -1; > +#endif
I think you also have to cast them there, so settings.clientUid = (uid_t) -1; settings.clientGid = (gid_t) -1; The reason is because (-1) is a signed integer and clientUid isn't - and neither is clientGid.