Back to index

courier  0.68.2
setgroupid.c
Go to the documentation of this file.
00001 #include      "setgroupid.h"
00002 
00003 
00004 void   setgroupid(gid_t grpid)
00005 {
00006 gid_t g=grpid;
00007 
00008 #if    HAVE_SETGROUPS
00009        setgroups(1, &g);
00010 #endif
00011 
00012        setgid(g);
00013 }