On Fri, Apr 8, 2011 at 1:53 PM, Frank Brodbeck <[email protected]> wrote:
> lately I was reading on misc@ [1] that there's no way to remove a user
> from secondary groups but by hand. I also searched for a PR but couldn't
> find one. The attached diff remedies the problem:

> +               while ((cp = strstr(cp, user)) != NULL) {
> +                       if ((cp[-1] == ':' || cp[-1] == ',') &&
> +                           (cp[login_len] == ',' || cp[login_len] == '\n'))
{

oh, god, that's ugly.  I think this program is screaming out to be
rewritten in perl. :)

Reply via email to