SCCS-vsn: usr.sbin/sendmail/src/usersmtp.c 6.34
SCCS-vsn: usr.sbin/sendmail/src/main.c 6.70
SCCS-vsn: usr.sbin/sendmail/src/parseaddr.c 6.60
SCCS-vsn: usr.sbin/sendmail/src/domain.c 6.22
SCCS-vsn: usr.sbin/sendmail/src/arpadate.c 6.9
SCCS-vsn: usr.sbin/sendmail/src/srvrsmtp.c 6.60
SCCS-vsn: usr.sbin/sendmail/src/util.c 6.21
SCCS-vsn: usr.sbin/sendmail/src/readcf.c 6.43
SCCS-vsn: usr.sbin/sendmail/src/deliver.c 6.82
SCCS-vsn: usr.sbin/sendmail/src/conf.c 6.63
SCCS-vsn: usr.sbin/sendmail/src/alias.c 6.52
SCCS-vsn: usr.sbin/sendmail/src/map.c 6.28
12 files changed:
# include <pwd.h>
#ifndef lint
# include <pwd.h>
#ifndef lint
-static char sccsid[] = "@(#)alias.c 6.51 (Berkeley) %G%";
+static char sccsid[] = "@(#)alias.c 6.52 (Berkeley) %G%";
bool skipping;
long naliases, bytes, longest;
ADDRESS al, bl;
bool skipping;
long naliases, bytes, longest;
ADDRESS al, bl;
-static char sccsid[] = "@(#)arpadate.c 6.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)arpadate.c 6.9 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
-
-/*
-** NEXTATOM -- Return pointer to next atom in header
-** (skip whitespace and comments)
-**
-** Parameters:
-** s -- pointer to header string
-**
-** Returns:
-** pointer advanced to next non-comment header atom
-**
-** Side Effects:
-** none
-*/
-
-static char *
-nextatom(s)
- char *s;
-{
- char *p;
-
- for (p = s;
- *p && (*p == ' ' || *p == '\t' || *p == '\n' || *p == '(');
- p++)
- {
- if (*p == '(')
- {
- int nested = 0;
-
- /* ignore comments */
- p++;
- for (; *p; p++)
- {
- if (*p == '(')
- nested++;
- else if (*p == ')')
- if (!nested)
- break;
- else
- nested--;
- }
- }
- }
- return (p);
-}
-static char sccsid[] = "@(#)conf.c 6.62 (Berkeley) %G%";
+static char sccsid[] = "@(#)conf.c 6.63 (Berkeley) %G%";
#endif /* not lint */
# include <sys/ioctl.h>
#endif /* not lint */
# include <sys/ioctl.h>
# define FSBLOCKSIZE fs.f_bsize
# endif
# endif
# define FSBLOCKSIZE fs.f_bsize
# endif
# endif
extern int errno;
if (MinBlocksFree <= 0 && msize <= 0)
extern int errno;
if (MinBlocksFree <= 0 && msize <= 0)
-static char sccsid[] = "@(#)deliver.c 6.81 (Berkeley) %G%";
+static char sccsid[] = "@(#)deliver.c 6.82 (Berkeley) %G%";
#endif /* not lint */
#include "sendmail.h"
#endif /* not lint */
#include "sendmail.h"
register ENVELOPE *e;
{
# ifdef LOG
register ENVELOPE *e;
{
# ifdef LOG
char buf[512];
(void) sprintf(buf, "delay=%s", pintvl(curtime() - e->e_ctime, TRUE));
char buf[512];
(void) sprintf(buf, "delay=%s", pintvl(curtime() - e->e_ctime, TRUE));
#ifndef lint
#ifdef NAMED_BIND
#ifndef lint
#ifdef NAMED_BIND
-static char sccsid[] = "@(#)domain.c 6.21 (Berkeley) %G% (with name server)";
+static char sccsid[] = "@(#)domain.c 6.22 (Berkeley) %G% (with name server)";
-static char sccsid[] = "@(#)domain.c 6.21 (Berkeley) %G% (without name server)";
+static char sccsid[] = "@(#)domain.c 6.22 (Berkeley) %G% (without name server)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
register int n;
HEADER *hp;
querybuf answer;
register int n;
HEADER *hp;
querybuf answer;
- int first, ancount, qdcount;
int ret;
char **domain;
int type;
int ret;
char **domain;
int type;
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)main.c 6.69 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c 6.70 (Berkeley) %G%";
#endif /* not lint */
#define _DEFINE
#endif /* not lint */
#define _DEFINE
+ while ((ap = *++argv) != NULL)
{
/* Return if "--" or not an option of any form. */
if (ap[0] != '-' || ap[1] == '-')
{
/* Return if "--" or not an option of any form. */
if (ap[0] != '-' || ap[1] == '-')
-static char sccsid[] = "@(#)map.c 6.27 (Berkeley) %G%";
+static char sccsid[] = "@(#)map.c 6.28 (Berkeley) %G%";
#endif /* not lint */
#include "sendmail.h"
#endif /* not lint */
#include "sendmail.h"
-stab_map_lookup(map, name)
+stab_map_lookup(map, name, av, pstat)
register MAP *map;
char *name;
register MAP *map;
char *name;
+ char **av;
+ int *pstat;
register MAP *map;
int mode;
{
register MAP *map;
int mode;
{
if (tTd(38, 2))
printf("stab_map_open(%s)\n", map->map_file);
if (tTd(38, 2))
printf("stab_map_open(%s)\n", map->map_file);
-static char sccsid[] = "@(#)parseaddr.c 6.59 (Berkeley) %G%";
+static char sccsid[] = "@(#)parseaddr.c 6.60 (Berkeley) %G%";
#endif /* not lint */
#include "sendmail.h"
#endif /* not lint */
#include "sendmail.h"
char *paddr;
char *delimptr;
{
char *paddr;
char *delimptr;
{
- register MAILER *m = a->q_mailer;
-
if (tTd(24, 4))
printf("allocaddr(copyf=%d, paddr=%s)\n", copyf, paddr);
if (tTd(24, 4))
printf("allocaddr(copyf=%d, paddr=%s)\n", copyf, paddr);
char **hbrvp, **ubrvp;
char **xpvp;
int trsize;
char **hbrvp, **ubrvp;
char **xpvp;
int trsize;
char *replac;
int endtoken;
STAB *map;
char *replac;
int endtoken;
STAB *map;
-static char sccsid[] = "@(#)readcf.c 6.42 (Berkeley) %G%";
+static char sccsid[] = "@(#)readcf.c 6.43 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
FILE *cf;
int ruleset = 0;
char *q;
FILE *cf;
int ruleset = 0;
char *q;
struct rewrite *rwp = NULL;
char *bp;
int nfuzzy;
struct rewrite *rwp = NULL;
char *bp;
int nfuzzy;
-static char sccsid[] = "@(#)srvrsmtp.c 6.59 (Berkeley) %G% (with SMTP)";
+static char sccsid[] = "@(#)srvrsmtp.c 6.60 (Berkeley) %G% (with SMTP)";
-static char sccsid[] = "@(#)srvrsmtp.c 6.59 (Berkeley) %G% (without SMTP)";
+static char sccsid[] = "@(#)srvrsmtp.c 6.60 (Berkeley) %G% (without SMTP)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
-static char sccsid[] = "@(#)usersmtp.c 6.33 (Berkeley) %G% (with SMTP)";
+static char sccsid[] = "@(#)usersmtp.c 6.34 (Berkeley) %G% (with SMTP)";
-static char sccsid[] = "@(#)usersmtp.c 6.33 (Berkeley) %G% (without SMTP)";
+static char sccsid[] = "@(#)usersmtp.c 6.34 (Berkeley) %G% (without SMTP)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
p = strchr(&SmtpReplyBuffer[4], ' ');
if (p != NULL)
p = strchr(&SmtpReplyBuffer[4], ' ');
if (p != NULL)
if (strcasecmp(&SmtpReplyBuffer[4], MyHostName) == 0)
{
syserr("553 %s config error: mail loops back to myself",
if (strcasecmp(&SmtpReplyBuffer[4], MyHostName) == 0)
{
syserr("553 %s config error: mail loops back to myself",
-static char sccsid[] = "@(#)util.c 6.20 (Berkeley) %G%";
+static char sccsid[] = "@(#)util.c 6.21 (Berkeley) %G%";
#endif /* not lint */
# include "sendmail.h"
#endif /* not lint */
# include "sendmail.h"
int cmode;
{
register int tries;
int cmode;
{
register int tries;
int fd;
register struct omodes *om;
struct stat st;
int fd;
register struct omodes *om;
struct stat st;
/* strip out 0200 bits -- these can look like TELNET protocol */
if (bitnset(M_7BITS, m->m_flags))
{
/* strip out 0200 bits -- these can look like TELNET protocol */
if (bitnset(M_7BITS, m->m_flags))
{
- for (p = l; svchar = *p; ++p)
- if (svchar & 0200)
+ for (p = l; (svchar = *p) != '\0'; ++p)
+ if (bitset(0200, svchar))