SCCS-vsn: usr.sbin/sendmail/src/main.c 8.137
SCCS-vsn: usr.sbin/sendmail/src/util.c 8.78
SCCS-vsn: usr.sbin/sendmail/src/readcf.c 8.109
SCCS-vsn: usr.sbin/sendmail/src/deliver.c 8.160
-static char sccsid[] = "@(#)deliver.c 8.159 (Berkeley) %G%";
+static char sccsid[] = "@(#)deliver.c 8.160 (Berkeley) %G%";
#endif /* not lint */
#include "sendmail.h"
#endif /* not lint */
#include "sendmail.h"
if (bitnset(M_SPECIFIC_UID, m->m_flags))
(void) setuid(m->m_uid);
else if (bitset(S_ISUID, stb.st_mode))
if (bitnset(M_SPECIFIC_UID, m->m_flags))
(void) setuid(m->m_uid);
else if (bitset(S_ISUID, stb.st_mode))
}
/* now set the group and user ids */
}
/* now set the group and user ids */
if (RealUserName != NULL)
(void) initgroups(RealUserName, RealGid);
else
if (RealUserName != NULL)
(void) initgroups(RealUserName, RealGid);
else
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)main.c 8.136 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c 8.137 (Berkeley) %G%";
#endif /* not lint */
#define _DEFINE
#endif /* not lint */
#define _DEFINE
if (RealUid != 0)
warn_C_flag = TRUE;
ConfFile = optarg;
if (RealUid != 0)
warn_C_flag = TRUE;
ConfFile = optarg;
(void) setgid(RealGid);
(void) setuid(RealUid);
safecf = FALSE;
(void) setgid(RealGid);
(void) setuid(RealUid);
safecf = FALSE;
break;
case 'X': /* traffic log file */
break;
case 'X': /* traffic log file */
setgid(RealGid);
setuid(RealUid);
TrafficLogFile = fopen(optarg, "a");
setgid(RealGid);
setuid(RealUid);
TrafficLogFile = fopen(optarg, "a");
/* if we've had errors so far, exit now */
if (ExitStat != EX_OK && OpMode != MD_TEST)
{
/* if we've had errors so far, exit now */
if (ExitStat != EX_OK && OpMode != MD_TEST)
{
setuid(RealUid);
exit(ExitStat);
}
setuid(RealUid);
exit(ExitStat);
}
#ifdef QUEUE
dropenvelope(CurEnv);
printqueue();
#ifdef QUEUE
dropenvelope(CurEnv);
printqueue();
setuid(RealUid);
exit(EX_OK);
#else /* QUEUE */
setuid(RealUid);
exit(EX_OK);
#else /* QUEUE */
case MD_INITALIAS:
/* initialize alias database */
initmaps(TRUE, CurEnv);
case MD_INITALIAS:
/* initialize alias database */
initmaps(TRUE, CurEnv);
setuid(RealUid);
exit(EX_OK);
setuid(RealUid);
exit(EX_OK);
ExitStat = EX_OK;
/* reset uid for process accounting */
ExitStat = EX_OK;
/* reset uid for process accounting */
setuid(RealUid);
exit(ExitStat);
setuid(RealUid);
exit(ExitStat);
#endif
/* reset uid for process accounting */
#endif
/* reset uid for process accounting */
setuid(RealUid);
exit(EX_OK);
setuid(RealUid);
exit(EX_OK);
-static char sccsid[] = "@(#)readcf.c 8.108 (Berkeley) %G%";
+static char sccsid[] = "@(#)readcf.c 8.109 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
-static char sccsid[] = "@(#)util.c 8.77 (Berkeley) %G%";
+static char sccsid[] = "@(#)util.c 8.78 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
close(fileno(e->e_lockfp));
/* run as default user */
close(fileno(e->e_lockfp));
/* run as default user */
setgid(DefGid);
setuid(DefUid);
setgid(DefGid);
setuid(DefUid);