1 /* $Cambridge: exim/src/src/routers/rf_set_ugid.c,v 1.4 2007/01/08 10:50:20 ph10 Exp $ */
3 /*************************************************
4 * Exim - an Internet mail transport agent *
5 *************************************************/
7 /* Copyright (c) University of Cambridge 1995 - 2007 */
8 /* See the file NOTICE for conditions of use and distribution. */
11 #include "rf_functions.h"
14 /*************************************************
15 * Set uid/gid from block into address *
16 *************************************************/
18 /* This function copies any set uid or gid from a ugid block into an
29 rf_set_ugid(address_item *addr, ugid_block *ugid)
33 addr->uid = ugid->uid;
34 setflag(addr, af_uid_set);
39 addr->gid = ugid->gid;
40 setflag(addr, af_gid_set);
43 if (ugid->initgroups) setflag(addr, af_initgroups);
46 /* End of rf_set_ugid.c */