diff options
Diffstat (limited to 'sshd.c')
-rw-r--r-- | sshd.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 | ||