take any -f flag if debug mode and uid==euid.
SCCS-vsn: usr.sbin/sendmail/src/deliver.c 3.47
SCCS-vsn: usr.sbin/sendmail/src/version.c 3.49
SCCS-vsn: usr.sbin/sendmail/src/main.c 3.41
# include <syslog.h>
# endif LOG
# include <syslog.h>
# endif LOG
-static char SccsId[] = "@(#)deliver.c 3.46 %G%";
+static char SccsId[] = "@(#)deliver.c 3.47 %G%";
/*
** DELIVER -- Deliver a message to a list of addresses.
/*
** DELIVER -- Deliver a message to a list of addresses.
char tfrombuf[MAXNAME]; /* translated from person */
extern char **prescan();
char tfrombuf[MAXNAME]; /* translated from person */
extern char **prescan();
if (!ForceMail && bitset(QDONTSEND, to->q_flags))
return (0);
if (!ForceMail && bitset(QDONTSEND, to->q_flags))
return (0);
define('g', tfrombuf); /* translated sender address */
define('h', host); /* to host */
Errors = 0;
define('g', tfrombuf); /* translated sender address */
define('h', host); /* to host */
Errors = 0;
pvp = pv;
*pvp++ = m->m_argv[0];
pvp = pv;
*pvp++ = m->m_argv[0];
ctladdr = &From;
i = sendoff(m, pv, editfcn, ctladdr);
ctladdr = &From;
i = sendoff(m, pv, editfcn, ctladdr);
printav(pvp);
}
# endif DEBUG
printav(pvp);
}
# endif DEBUG
/* create a pipe to shove the mail through */
if (pipe(pvect) < 0)
/* create a pipe to shove the mail through */
if (pipe(pvect) < 0)
# include <syslog.h>
# endif LOG
# include <syslog.h>
# endif LOG
-static char SccsId[] = "@(#)main.c 3.40 %G%";
+static char SccsId[] = "@(#)main.c 3.41 %G%";
/*
** SENDMAIL -- Post mail to a set of destinations.
/*
** SENDMAIL -- Post mail to a set of destinations.
DontSend = FALSE;
To = NULL;
DontSend = FALSE;
To = NULL;
if (!verifyonly || GrabTo)
collect();
if (!verifyonly || GrabTo)
collect();
/* collect statistics */
Stat.stat_nf[From.q_mailer]++;
/* collect statistics */
Stat.stat_nf[From.q_mailer]++;
if (from != NULL)
{
if (strcmp(realname, "network") != 0 && strcmp(realname, "uucp") != 0 &&
if (from != NULL)
{
if (strcmp(realname, "network") != 0 && strcmp(realname, "uucp") != 0 &&
+# ifdef DEBUG
+ (Debug == 0 || getuid() != geteuid()) &&
+# endif DEBUG
index(from, '!') == NULL && getuid() != 0)
{
/* network sends -r regardless (why why why?) */
index(from, '!') == NULL && getuid() != 0)
{
/* network sends -r regardless (why why why?) */
-static char SccsId[] = "@(#)SendMail version 3.48 of %G%";
+static char SccsId[] = "@(#)SendMail version 3.49 of %G%";
-char Version[] = "3.48 [%G%]";
+char Version[] = "3.49 [%G%]";