summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9f4dbe0)
SCCS-vsn: usr.sbin/sendmail/src/headers.c 5.30
SCCS-vsn: usr.sbin/sendmail/src/conf.h 5.33
SCCS-vsn: usr.sbin/sendmail/src/domain.c 5.39
SCCS-vsn: usr.sbin/sendmail/src/err.c 5.17
SCCS-vsn: usr.sbin/sendmail/src/srvrsmtp.c 5.40
SCCS-vsn: usr.sbin/sendmail/src/util.c 5.35
SCCS-vsn: usr.sbin/sendmail/src/deliver.c 5.67
SCCS-vsn: usr.sbin/sendmail/src/conf.c 5.49
SCCS-vsn: usr.sbin/sendmail/src/alias.c 5.43
SCCS-vsn: usr.sbin/sendmail/src/udb.c 5.21
#ifndef lint
#ifdef NEWDB
#ifndef lint
#ifdef NEWDB
-static char sccsid[] = "@(#)alias.c 5.42 (Berkeley) %G% (with NEWDB)";
+static char sccsid[] = "@(#)alias.c 5.43 (Berkeley) %G% (with NEWDB)";
-static char sccsid[] = "@(#)alias.c 5.42 (Berkeley) %G% (with NDBM)";
+static char sccsid[] = "@(#)alias.c 5.43 (Berkeley) %G% (with NDBM)";
-static char sccsid[] = "@(#)alias.c 5.42 (Berkeley) %G% (without NDBM)";
+static char sccsid[] = "@(#)alias.c 5.43 (Berkeley) %G% (without NDBM)";
#endif
#endif
#endif /* not lint */
#endif
#endif
#endif /* not lint */
for (pp = ForwardPath; pp != NULL; pp = ep)
{
for (pp = ForwardPath; pp != NULL; pp = ep)
{
+ char buf[MAXPATHLEN+1];
ep = strchr(pp, ':');
if (ep != NULL)
ep = strchr(pp, ':');
if (ep != NULL)
-static char sccsid[] = "@(#)conf.c 5.48 (Berkeley) %G%";
+static char sccsid[] = "@(#)conf.c 5.49 (Berkeley) %G%";
#endif /* not lint */
# include <sys/ioctl.h>
#endif /* not lint */
# include <sys/ioctl.h>
# include <pwd.h>
# include "sendmail.h"
# include "pathnames.h"
# include <pwd.h>
# include "sendmail.h"
# include "pathnames.h"
*
* %sccs.include.redist.c%
*
*
* %sccs.include.redist.c%
*
- * @(#)conf.h 5.32 (Berkeley) %G%
+ * @(#)conf.h 5.33 (Berkeley) %G%
*/
/*
** CONF.H -- All user-configurable parameters for sendmail
*/
*/
/*
** CONF.H -- All user-configurable parameters for sendmail
*/
+# include <sys/param.h>
+
/*
** Table sizes, etc....
** There shouldn't be much need to change these....
/*
** Table sizes, etc....
** There shouldn't be much need to change these....
# define MAXUSERENVIRON 40 /* max # of items in user environ */
# define MAXMXHOSTS 20 /* max # of MX records */
# define SMTPLINELIM 990 /* maximum SMTP line length */
# define MAXUSERENVIRON 40 /* max # of items in user environ */
# define MAXMXHOSTS 20 /* max # of MX records */
# define SMTPLINELIM 990 /* maximum SMTP line length */
+# define MAXKEY 128 /* maximum size of a database key */
+# define MEMCHUNKSIZE 1024 /* chunk size for memory allocation */
# ifndef QUEUESIZE
# define QUEUESIZE 1000 /* max # of jobs per queue run */
# ifndef QUEUESIZE
# define QUEUESIZE 1000 /* max # of jobs per queue run */
-static char sccsid[] = "@(#)deliver.c 5.66 (Berkeley) %G%";
+static char sccsid[] = "@(#)deliver.c 5.67 (Berkeley) %G%";
#endif /* not lint */
#include "sendmail.h"
#endif /* not lint */
#include "sendmail.h"
#include <fcntl.h>
#include <errno.h>
#ifdef NAMED_BIND
#include <fcntl.h>
#include <errno.h>
#ifdef NAMED_BIND
#include <arpa/nameser.h>
#include <resolv.h>
#endif
#include <arpa/nameser.h>
#include <resolv.h>
#endif
#ifndef lint
#ifdef NAMED_BIND
#ifndef lint
#ifdef NAMED_BIND
-static char sccsid[] = "@(#)domain.c 5.38 (Berkeley) %G% (with name server)";
+static char sccsid[] = "@(#)domain.c 5.39 (Berkeley) %G% (with name server)";
-static char sccsid[] = "@(#)domain.c 5.38 (Berkeley) %G% (without name server)";
+static char sccsid[] = "@(#)domain.c 5.39 (Berkeley) %G% (without name server)";
#endif
#endif /* not lint */
#ifdef NAMED_BIND
#endif
#endif /* not lint */
#ifdef NAMED_BIND
#include <errno.h>
#include <arpa/nameser.h>
#include <resolv.h>
#include <errno.h>
#include <arpa/nameser.h>
#include <resolv.h>
-static char sccsid[] = "@(#)err.c 5.16 (Berkeley) %G%";
+static char sccsid[] = "@(#)err.c 5.17 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
{
extern char *sys_errlist[];
extern int sys_nerr;
{
extern char *sys_errlist[];
extern int sys_nerr;
+ static char buf[MAXLINE];
# ifdef SMTP
extern char *SmtpPhase;
# endif /* SMTP */
# ifdef SMTP
extern char *SmtpPhase;
# endif /* SMTP */
-static char sccsid[] = "@(#)headers.c 5.29 (Berkeley) %G%";
+static char sccsid[] = "@(#)headers.c 5.30 (Berkeley) %G%";
# include <errno.h>
# include "sendmail.h"
# include <errno.h>
# include "sendmail.h"
# ifdef LOG
if (!QueueRun && LogLevel > 1)
{
# ifdef LOG
if (!QueueRun && LogLevel > 1)
{
char *name = hbuf;
extern char *inet_ntoa();
char *name = hbuf;
extern char *inet_ntoa();
-static char sccsid[] = "@(#)srvrsmtp.c 5.39 (Berkeley) %G% (with SMTP)";
+static char sccsid[] = "@(#)srvrsmtp.c 5.40 (Berkeley) %G% (with SMTP)";
-static char sccsid[] = "@(#)srvrsmtp.c 5.39 (Berkeley) %G% (without SMTP)";
+static char sccsid[] = "@(#)srvrsmtp.c 5.40 (Berkeley) %G% (without SMTP)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
/* break off command */
for (p = inp; isspace(*p); p++)
continue;
/* break off command */
for (p = inp; isspace(*p); p++)
continue;
- cmd = p;
- for (cmd = cmdbuf; *p != '\0' && !isspace(*p); )
+ cmd = cmdbuf;
+ while (*p != '\0' && !isspace(*p) && cmd < &cmdbuf[sizeof cmdbuf - 2])
*cmd++ = *p++;
*cmd = '\0';
*cmd++ = *p++;
*cmd = '\0';
#ifndef lint
#ifdef USERDB
#ifndef lint
#ifdef USERDB
-static char sccsid [] = "@(#)udb.c 5.20 (Berkeley) %G% (with USERDB)";
+static char sccsid [] = "@(#)udb.c 5.21 (Berkeley) %G% (with USERDB)";
-static char sccsid [] = "@(#)udb.c 5.20 (Berkeley) %G% (without USERDB)";
+static char sccsid [] = "@(#)udb.c 5.21 (Berkeley) %G% (without USERDB)";
bool breakout;
register struct udbent *up;
int keylen;
bool breakout;
register struct udbent *up;
int keylen;
- char keybuf[128];
- char buf[8192];
+ char keybuf[MAXKEY];
+ char buf[BUFSIZ];
if (tTd(28, 1))
printf("expand(%s)\n", a->q_paddr);
if (tTd(28, 1))
printf("expand(%s)\n", a->q_paddr);
int i;
int keylen;
DBT key, info;
int i;
int keylen;
DBT key, info;
if (tTd(28, 1))
printf("udbsender(%s)\n", sender);
if (tTd(28, 1))
printf("udbsender(%s)\n", sender);
register char *p;
int i;
register struct udbent *up;
register char *p;
int i;
register struct udbent *up;
if (UdbInitialized)
return EX_OK;
if (UdbInitialized)
return EX_OK;
-static char sccsid[] = "@(#)util.c 5.34 (Berkeley) %G%";
+static char sccsid[] = "@(#)util.c 5.35 (Berkeley) %G%";
#endif /* not lint */
# include <stdio.h>
#endif /* not lint */
# include <stdio.h>
nbp = xalloc(nn);
bcopy(bp, nbp, p - bp);
p = &nbp[p - bp];
nbp = xalloc(nn);
bcopy(bp, nbp, p - bp);
p = &nbp[p - bp];