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. */
7 /* SPDX-License-Identifier: GPL-2.0-only */
10 #include "rf_functions.h"
13 /*************************************************
14 * Set uid/gid from block into address *
15 *************************************************/
17 /* This function copies any set uid or gid from a ugid block into an
28 rf_set_ugid(address_item *addr, ugid_block *ugid)
32 addr->uid = ugid->uid;
33 setflag(addr, af_uid_set);
38 addr->gid = ugid->gid;
39 setflag(addr, af_gid_set);
42 if (ugid->initgroups) setflag(addr, af_initgroups);
45 /* End of rf_set_ugid.c */