Hi!

On Fri, 2011-09-16 at 18:00:29 +0200, Andreas Pretzsch wrote:
> Package: dpkg
> Version: 1.16.0.3
> Severity: normal
> 
> start-stop-daemon is expected (as per man page) to set the supplemental
> groups of a user when called with option "-c user:group".
> This happens if the user is given in cleartext, not when passed as number.
> Both are legal based on the man page.
> 
> Behaviour verified on latest Debian stable 6.0.2 (vanilla live image)
> and on current Debian testing/unstable (dpkg 1.16.0.3).
>
[test-case]
>
> Tracking it down in the source, the culprit is the call to initgroups().
> It's defined as "int initgroups(const char *user, gid_t group)", but
> apparently only works with cleartext usernames, but not with an uid
> passed as text. In the latter two cases (-c 1000:whatever), the user is
> passed as string containing a number, i.e. "1000".
> Unfortunately, initgroups() still returns 0 for success in this case...

Thanks for tracking this down! I've fixed it locally, will be included
in my next push.

regards,
guillem



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to