1 /*************************************************
2 * Exim - an Internet mail transport agent *
3 *************************************************/
5 /* Copyright (c) University of Cambridge 1995 - 2009 */
6 /* See the file NOTICE for conditions of use and distribution. */
9 #include "rf_functions.h"
12 /*************************************************
13 * Set uid/gid from block into address *
14 *************************************************/
16 /* This function copies any set uid or gid from a ugid block into an
27 rf_set_ugid(address_item
*addr
, ugid_block
*ugid
)
31 addr
->uid
= ugid
->uid
;
32 setflag(addr
, af_uid_set
);
37 addr
->gid
= ugid
->gid
;
38 setflag(addr
, af_gid_set
);
41 if (ugid
->initgroups
) setflag(addr
, af_initgroups
);
44 /* End of rf_set_ugid.c */