summaryrefslogtreecommitdiff
path: root/contrib/cygwin
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2014-11-26 13:22:41 +1100
committerDamien Miller <djm@mindrot.org>2014-11-26 13:22:41 +1100
commit867f49c666adcfe92bf539d9c37c1accdea08bf6 (patch)
treedc301f4acfd179d1e0f6c5f528b89d0b3a941732 /contrib/cygwin
parent8b66f36291a721b1ba7c44f24a07fdf39235593e (diff)
Avoid Cygwin ssh-host-config reading /etc/group
Patch from Corinna Vinschen
Diffstat (limited to 'contrib/cygwin')
-rw-r--r--contrib/cygwin/ssh-host-config5
1 files changed, 1 insertions, 4 deletions
diff --git a/contrib/cygwin/ssh-host-config b/contrib/cygwin/ssh-host-config
index eb67221b1..d934d09b5 100644
--- a/contrib/cygwin/ssh-host-config
+++ b/contrib/cygwin/ssh-host-config
@@ -630,10 +630,7 @@ then
630 csih_warning "However, it seems your account does not have these privileges." 630 csih_warning "However, it seems your account does not have these privileges."
631 csih_warning "Here's the list of groups in your user token:" 631 csih_warning "Here's the list of groups in your user token:"
632 echo 632 echo
633 for i in $(/usr/bin/id -G) 633 /usr/bin/id -Gnz | xargs -0n1 echo " "
634 do
635 /usr/bin/awk -F: "/[^:]*:[^:]*:$i:/{ print \" \" \$1; }" /etc/group
636 done
637 echo 634 echo
638 csih_warning "This usually means you're running this script from a non-admin" 635 csih_warning "This usually means you're running this script from a non-admin"
639 csih_warning "desktop session, or in a non-elevated shell under UAC control." 636 csih_warning "desktop session, or in a non-elevated shell under UAC control."