diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -501,11 +501,11 @@ cfg_apply() CAPNG_DROP_SUPP_GRP | CAPNG_CLEAR_BOUNDING)) die("capng_change_id failed"); } else { - if (capng_apply(CAPNG_SELECT_BOTH)) { - capng_clear(CAPNG_SELECT_BOTH); - if (capng_apply(CAPNG_SELECT_BOTH)) - die("capng_apply failed"); - } + /* + * This can fail if any of the caps are lacking, but it'll + * be re-checked later. + */ + capng_apply(CAPNG_SELECT_BOTH); setgroups(0, NULL); } @@ -596,7 +596,8 @@ main(int argc, char **argv) announce_init(); - announce_start(); + if (!cfg->igmp) + announce_start(0); idle_init(); |