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

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



On Nov  5 20:55, Nico Kadel-Garcia wrote:
> On Wed, Nov 5, 2014 at 8:25 AM, Corinna Vinschen <vinschen@xxxxxxxxxx> 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

Attachment: pgp4D2VJTFbvm.pgp
Description: PGP signature

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux