summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sshd.c b/sshd.c
index 9462bf0af..3308a8dc9 100644
--- a/sshd.c
+++ b/sshd.c
@@ -831,6 +831,9 @@ main(int ac, char **av)
831 av = saved_argv; 831 av = saved_argv;
832#endif 832#endif
833 833
834 if (geteuid() == 0 && setgroups(0, NULL) == -1)
835 debug("setgroups(): %.200s", strerror(errno));
836
834 /* Initialize configuration options to their default values. */ 837 /* Initialize configuration options to their default values. */
835 initialize_server_options(&options); 838 initialize_server_options(&options);
836 839