commas in aliases.
SCCS-vsn: usr.sbin/sendmail/src/err.c 5.6
SCCS-vsn: usr.sbin/sendmail/src/alias.c 5.6
SCCS-vsn: usr.sbin/sendmail/src/parseaddr.c 5.3
SCCS-vsn: usr.sbin/sendmail/src/version.c 5.31
-static char SccsId[] = "@(#)alias.c 5.5 (Berkeley) %G% (with DBM)";
+static char SccsId[] = "@(#)alias.c 5.6 (Berkeley) %G% (with DBM)";
-static char SccsId[] = "@(#)alias.c 5.5 (Berkeley) %G% (without DBM)";
+static char SccsId[] = "@(#)alias.c 5.6 (Berkeley) %G% (without DBM)";
# endif DBM
#endif not lint
# endif DBM
#endif not lint
int lhssize, rhssize;
LineNumber++;
int lhssize, rhssize;
LineNumber++;
+ p = index(line, '\n');
+ if (p != NULL)
+ *p = '\0';
switch (line[0])
{
case '#':
switch (line[0])
{
case '#':
case '\0':
skipping = FALSE;
continue;
case '\0':
skipping = FALSE;
continue;
if (init)
{
/* do parsing & compression of addresses */
if (init)
{
/* do parsing & compression of addresses */
- c = *p;
- while (c != '\0')
- p2 = p;
- while (*p != '\n' && *p != ',' && *p != '\0')
- p++;
- c = *p;
- if (c == '\n')
- c = '\0';
- *p = '\0';
- if (*p2 != '\0' &&
- parseaddr(p2, &bl, -1, ',') == NULL)
- {
- usrerr("%s... bad address");
- }
- if (c != '\0')
- *p++ = c;
- while (isspace(*p))
+ extern char *DelimChar;
+
+ while (isspace(*p) || *p == ',')
+ if (*p == '\0')
+ break;
+ if (parseaddr(p, &bl, -1, ',') == NULL)
+ usrerr("%s... bad address", p);
+ p = DelimChar;
-static char SccsId[] = "@(#)err.c 5.5 (Berkeley) %G%";
+static char SccsId[] = "@(#)err.c 5.6 (Berkeley) %G%";
#endif not lint
# include "sendmail.h"
#endif not lint
# include "sendmail.h"
- /* insure that we have a queue id for logging */
- (void) queuename(CurEnv, '\0');
# ifdef LOG
if (LogLevel > 0)
# ifdef LOG
if (LogLevel > 0)
- syslog(LOG_CRIT, "%s: SYSERR: %s", CurEnv->e_id, &MsgBuf[4]);
+ syslog(LOG_CRIT, "%s: SYSERR: %s",
+ CurEnv->e_id == NULL ? "NOQUEUE" : CurEnv->e_id,
+ &MsgBuf[4]);
# endif LOG
errno = 0;
if (QuickAbort)
# endif LOG
errno = 0;
if (QuickAbort)
-static char SccsId[] = "@(#)parseaddr.c 5.2 (Berkeley) %G%";
+static char SccsId[] = "@(#)parseaddr.c 5.3 (Berkeley) %G%";
#endif not lint
# include "sendmail.h"
#endif not lint
# include "sendmail.h"
** NULL on error.
**
** Side Effects:
** NULL on error.
**
** Side Effects:
+** sets DelimChar to point to the character matching 'delim'.
*/
/* states and character types */
*/
/* states and character types */
-static char SccsId[] = "@(#)version.c 5.30 (Berkeley) %G%";
+static char SccsId[] = "@(#)version.c 5.31 (Berkeley) %G%";
-char Version[] = "5.30";
+char Version[] = "5.31";