diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2011-12-22 12:23:18 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2011-12-22 12:23:18 +0100 |
commit | ad46e4d3ed1997e6b3f718a7a8be9a37eb63388d (patch) | |
tree | d42f7ec8c32775ed2344dc50fb816b5618830268 /protocols/jabber/io.c | |
parent | f1c870a20c1c8a1173fe6244952518f015fc1346 (diff) |
Use initgroups() as well when dropping privileges. Closes bug #852.
Diffstat (limited to 'protocols/jabber/io.c')
-rw-r--r-- | protocols/jabber/io.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/jabber/io.c b/protocols/jabber/io.c index a28eea90..d3383375 100644 --- a/protocols/jabber/io.c +++ b/protocols/jabber/io.c @@ -172,6 +172,9 @@ static gboolean jabber_read_callback( gpointer data, gint fd, b_input_condition if( st > 0 ) { + if( jd->flags & JFLAG_MOCK ) + return TRUE; + /* Parse. */ if( xt_feed( jd->xt, buf, st ) < 0 ) { |