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

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

 



applied too - thanks

On Mon, 17 Nov 2014, Corinna Vinschen wrote:

> Ping?
> 
> 
> Thanks,
> Corinna
> 
> On Nov  5 14:25, Corinna Vinschen 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
> > 
> > 
> > Signed-off-by: Corinna Vinschen <vinschen@xxxxxxxxxx>
> > ---
> >  contrib/cygwin/ssh-host-config | 5 +----
> >  1 file changed, 1 insertion(+), 4 deletions(-)
> > 
> > diff --git a/contrib/cygwin/ssh-host-config b/contrib/cygwin/ssh-host-config
> > index 301d5eb..3214829 100644
> > --- a/contrib/cygwin/ssh-host-config
> > +++ b/contrib/cygwin/ssh-host-config
> > @@ -623,10 +623,7 @@ then
> >    csih_warning "However, it seems your account does not have these privileges."
> >    csih_warning "Here's the list of groups in your user token:"
> >    echo
> > -  for i in $(/usr/bin/id -G)
> > -  do
> > -    /usr/bin/awk -F: "/[^:]*:[^:]*:$i:/{ print \"    \" \$1; }" /etc/group
> > -  done
> > +  /usr/bin/id -Gnz | xargs -0n1 echo "   "
> >    echo
> >    csih_warning "This usually means you're running this script from a non-admin"
> >    csih_warning "desktop session, or in a non-elevated shell under UAC control."
> 
> -- 
> Corinna Vinschen
> Cygwin Maintainer
> Red Hat
> 
_______________________________________________
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