[PATCH] Don't read group names from /etc/group
Damien Miller
djm at mindrot.org
Wed Nov 26 13:39:39 EST 2014
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 at redhat.com>
> > ---
> > 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
>
More information about the openssh-unix-dev
mailing list