Back to index

courier  0.68.2
Functions
setgroupid.c File Reference
#include "setgroupid.h"

Go to the source code of this file.

Functions

void setgroupid (gid_t grpid)

Function Documentation

void setgroupid ( gid_t  grpid)

Definition at line 4 of file setgroupid.c.

{
gid_t g=grpid;

#if    HAVE_SETGROUPS
       setgroups(1, &g);
#endif

       setgid(g);
}