SCCS-mr: usr.sbin/sendmail/src/envelope.c 103
SCCS-vsn: usr.sbin/sendmail/src/envelope.c 3.2
#include "sendmail.h"
#include <sys/stat.h>
#include "sendmail.h"
#include <sys/stat.h>
-SCCSID(@(#)envelope.c 3.1 %G%);
+SCCSID(@(#)envelope.c 3.2 %G%);
/*
** NEWENVELOPE -- allocate a new envelope
/*
** NEWENVELOPE -- allocate a new envelope
FullName = NULL;
/* extract full name from passwd file */
FullName = NULL;
/* extract full name from passwd file */
- if (FullName == NULL && pw->pw_gecos != NULL)
+ if (FullName == NULL && pw->pw_gecos != NULL &&
+ strcmp(pw->pw_name, CurEnv->e_from.q_user) == 0)
{
buildfname(pw->pw_gecos, CurEnv->e_from.q_user, buf);
if (buf[0] != '\0')
{
buildfname(pw->pw_gecos, CurEnv->e_from.q_user, buf);
if (buf[0] != '\0')