[PATCH] Don't read group names from /etc/group

Corinna Vinschen vinschen at redhat.com
Thu Nov 6 19:58:51 EST 2014


On Nov  5 20:55, Nico Kadel-Garcia wrote:
> On Wed, Nov 5, 2014 at 8:25 AM, Corinna Vinschen <vinschen at redhat.com> wrote:
> > On Nov  5 11:03, Damien Miller wrote:
> >> done - thanks again
> >
> > Thank you.  Unfortunately there was still one problem left in
> > ssh-host-config, which at one point reads from /etc/group when printing
> > the user's group membership.  Patch below.
> >
> >
> > Thanks,
> > Corinna
> 
> 'getent group' can also be useful. But yes, parsing /etc/group is
> useless in an NIS or LDAP based environment.

Yes, indeed.  It just occured to me that listing the user's group names
is much easier by utilizing id's output directly.  The original code
reading from /etc/group was already much too complicated.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20141106/96aa118a/attachment.bin>


More information about the openssh-unix-dev mailing list