Revert previous commit. We still want to call setgroups in the case where
authordtucker <dtucker@openbsd.org>
Wed, 24 Jun 2015 01:49:19 +0000 (01:49 +0000)
committerdtucker <dtucker@openbsd.org>
Wed, 24 Jun 2015 01:49:19 +0000 (01:49 +0000)
commita6f541d58da637344c2b7899fa96283714950dff
treee9707c35b213303a377377cdc5515a0bf1c5e65d
parent45d4676862c0a289aa39f15cca87ba4ac6bf91ce
Revert previous commit.  We still want to call setgroups in the case where
there are zero groups to remove any that we might otherwise inherit (as
pointed out by grawity at gmail.com) and since the 2nd argument to
setgroups is always a static global it's always valid to dereference in
this case.  ok deraadt@ djm@
usr.bin/ssh/uidswap.c