comments; properly limit large messages in -obq mode
SCCS-vsn: usr.sbin/sendmail/src/main.c 6.6
SCCS-vsn: usr.sbin/sendmail/src/parseaddr.c 6.6
SCCS-vsn: usr.sbin/sendmail/src/version.c 6.9
SCCS-vsn: usr.sbin/sendmail/src/deliver.c 6.8
SCCS-vsn: usr.sbin/sendmail/src/queue.c 6.3
-static char sccsid[] = "@(#)deliver.c 6.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)deliver.c 6.8 (Berkeley) %G%";
#endif /* not lint */
#include "sendmail.h"
#endif /* not lint */
#include "sendmail.h"
extern int DtableSize;
/* child -- set up input & exec mailer */
extern int DtableSize;
/* child -- set up input & exec mailer */
}
/* try to execute the mailer */
}
/* try to execute the mailer */
- execve(m->m_mailer, pvp, UserEnviron);
+ env[0] = "AGENT=sendmail";
+ env[1] = NULL;
+ execve(m->m_mailer, pvp, env);
saveerrno = errno;
syserr("Cannot exec %s", m->m_mailer);
if (m == LocalMailer)
saveerrno = errno;
syserr("Cannot exec %s", m->m_mailer);
if (m == LocalMailer)
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)main.c 6.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c 6.6 (Berkeley) %G%";
#endif /* not lint */
#define _DEFINE
#endif /* not lint */
#define _DEFINE
extern void intsig();
extern char **myhostname();
extern char *arpadate();
extern void intsig();
extern char **myhostname();
extern char *arpadate();
if (!nothaw)
readconfig = !thaw(FreezeFile, argv0);
if (!nothaw)
readconfig = !thaw(FreezeFile, argv0);
- /* strip out "dangerous" environment variables */
- (void) unsetenv("FS");
- for (i = 1; (p = envp[i++]) != NULL;)
- {
- if (strncmp(p, "LD_", 3) == 0)
- {
- /* hack: change this name to be non-special */
- p[0] = '\201';
- continue;
- }
- }
- environ = envp;
-
# ifdef SETPROCTITLE
/*
** Save start and extent of argv for setproctitle.
# ifdef SETPROCTITLE
/*
** Save start and extent of argv for setproctitle.
-static char sccsid[] = "@(#)parseaddr.c 6.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)parseaddr.c 6.6 (Berkeley) %G%";
#endif /* not lint */
#include "sendmail.h"
#endif /* not lint */
#include "sendmail.h"
/* read a new input character */
c = *p++;
/* read a new input character */
c = *p++;
- if (c == '\0' || (c == delim && anglecnt <= 0))
+ if (c == '\0' ||
+ (c == delim && anglecnt <= 0 && cmntcnt <= 0))
{
/* diagnose and patch up bad syntax */
if (state == QST)
{
/* diagnose and patch up bad syntax */
if (state == QST)
#ifndef lint
#ifdef QUEUE
#ifndef lint
#ifdef QUEUE
-static char sccsid[] = "@(#)queue.c 6.2 (Berkeley) %G% (with queueing)";
+static char sccsid[] = "@(#)queue.c 6.3 (Berkeley) %G% (with queueing)";
-static char sccsid[] = "@(#)queue.c 6.2 (Berkeley) %G% (without queueing)";
+static char sccsid[] = "@(#)queue.c 6.3 (Berkeley) %G% (without queueing)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
ctladdr = NULL;
while ((bp = fgetfolded(buf, sizeof buf, qfp)) != NULL)
{
ctladdr = NULL;
while ((bp = fgetfolded(buf, sizeof buf, qfp)) != NULL)
{
if (tTd(40, 4))
printf("+++++ %s\n", bp);
switch (bp[0])
if (tTd(40, 4))
printf("+++++ %s\n", bp);
switch (bp[0])
e->e_dfp = fopen(e->e_df, "r");
if (e->e_dfp == NULL)
syserr("readqf: cannot open %s", e->e_df);
e->e_dfp = fopen(e->e_df, "r");
if (e->e_dfp == NULL)
syserr("readqf: cannot open %s", e->e_df);
+ if (fstat(fileno(e->e_dfp), &st) >= 0)
+ e->e_msgsize = st.st_size;
break;
case 'T': /* init time */
break;
case 'T': /* init time */
-static char sccsid[] = "@(#)version.c 6.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)version.c 6.9 (Berkeley) %G%";
-char Version[] = "ALPHA-6.8";
+char Version[] = "ALPHA-6.9";