diff options
| author | jbeck <none@none> | 2006-08-09 18:08:34 -0700 |
|---|---|---|
| committer | jbeck <none@none> | 2006-08-09 18:08:34 -0700 |
| commit | 1daa57680c1c12da0548089a11b00a9d6d077bb5 (patch) | |
| tree | 333e42b20cc4371e852da7ff530e7048f7192c6b /usr/src/cmd/sendmail | |
| parent | 5518d15ba99a47e60869a37937bae1d390395567 (diff) | |
| download | illumos-joyent-1daa57680c1c12da0548089a11b00a9d6d077bb5.tar.gz | |
6458595 upgrade sendmail to 8.13.8
Diffstat (limited to 'usr/src/cmd/sendmail')
| -rw-r--r-- | usr/src/cmd/sendmail/cf/m4/version.m4 | 4 | ||||
| -rw-r--r-- | usr/src/cmd/sendmail/src/main.c | 10 | ||||
| -rw-r--r-- | usr/src/cmd/sendmail/src/queue.c | 18 | ||||
| -rw-r--r-- | usr/src/cmd/sendmail/src/srvrsmtp.c | 7 | ||||
| -rw-r--r-- | usr/src/cmd/sendmail/src/version.c | 4 |
5 files changed, 32 insertions, 11 deletions
diff --git a/usr/src/cmd/sendmail/cf/m4/version.m4 b/usr/src/cmd/sendmail/cf/m4/version.m4 index 53816672e4..8a461b176f 100644 --- a/usr/src/cmd/sendmail/cf/m4/version.m4 +++ b/usr/src/cmd/sendmail/cf/m4/version.m4 @@ -12,8 +12,8 @@ divert(-1) # # ident "%Z%%M% %I% %E% SMI" # -VERSIONID(`$Id: version.m4,v 8.150.2.4 2006/06/05 22:32:40 ca Exp $') +VERSIONID(`$Id: version.m4,v 8.150.2.8 2006/07/26 17:24:02 ca Exp $') # divert(0) # Configuration version number -DZ8.13.7`'ifdef(`confCF_VERSION', `/confCF_VERSION') +DZ8.13.8`'ifdef(`confCF_VERSION', `/confCF_VERSION') diff --git a/usr/src/cmd/sendmail/src/main.c b/usr/src/cmd/sendmail/src/main.c index a5cc06a5f6..c8ee0197ef 100644 --- a/usr/src/cmd/sendmail/src/main.c +++ b/usr/src/cmd/sendmail/src/main.c @@ -34,7 +34,7 @@ SM_UNUSED(static char copyright[]) = #pragma ident "%Z%%M% %I% %E% SMI" -SM_RCSID("@(#)$Id: main.c,v 8.944 2006/04/21 23:56:42 ca Exp $") +SM_RCSID("@(#)$Id: main.c,v 8.944.2.2 2006/08/03 22:05:03 ca Exp $") SM_IDSTR(i2, "%W% (Sun) %G%") #if NETINET || NETINET6 @@ -2298,6 +2298,8 @@ main(argc, argv, envp) { char dtype[200]; + /* avoid cleanup in finis(), DaemonPid will be set below */ + DaemonPid = 0; if (!run_in_foreground && !tTd(99, 100)) { /* put us in background */ @@ -2330,7 +2332,10 @@ main(argc, argv, envp) dtype[0] = '\0'; if (OpMode == MD_DAEMON) + { (void) sm_strlcat(dtype, "+SMTP", sizeof dtype); + DaemonPid = CurrentPid; + } if (QueueIntvl > 0) { (void) sm_strlcat2(dtype, @@ -2912,6 +2917,9 @@ finis(drop, cleanup, exitstat) dropenvelope(CurEnv, true, false); sm_rpool_free(CurEnv->e_rpool); CurEnv->e_rpool = NULL; + + /* this may have pointed to the rpool */ + CurEnv->e_to = NULL; } else poststats(StatFile); diff --git a/usr/src/cmd/sendmail/src/queue.c b/usr/src/cmd/sendmail/src/queue.c index 31f248a616..cd2833d541 100644 --- a/usr/src/cmd/sendmail/src/queue.c +++ b/usr/src/cmd/sendmail/src/queue.c @@ -16,7 +16,7 @@ #include <sendmail.h> #include <sm/sem.h> -SM_RCSID("@(#)$Id: queue.c,v 8.954 2006/04/22 01:07:00 ca Exp $") +SM_RCSID("@(#)$Id: queue.c,v 8.954.2.5 2006/07/31 21:44:18 ca Exp $") #include <dirent.h> @@ -2648,6 +2648,7 @@ gatherq(qgrp, qdir, doall, full, more) /* avoid work if possible */ if ((QueueSortOrder == QSO_BYFILENAME || QueueSortOrder == QSO_BYMODTIME || + QueueSortOrder == QSO_NONE || QueueSortOrder == QSO_RANDOM) && QueueLimitQuarantine == NULL && QueueLimitSender == NULL && @@ -6314,7 +6315,19 @@ filesys_find(name, path, add) for (i = 0; i < NumFileSys; ++i) { if (FILE_SYS_DEV(i) == st.st_dev) + { + /* + ** Make sure the file system (FS) name is set: + ** even though the source code indicates that + ** FILE_SYS_DEV() is only set below, it could be + ** set via shared memory, hence we need to perform + ** this check/assignment here. + */ + + if (NULL == FILE_SYS_NAME(i)) + FILE_SYS_NAME(i) = name; return i; + } } if (i >= MAXFILESYS) { @@ -6408,8 +6421,7 @@ filesys_update() static time_t nextupdate = 0; #if SM_CONF_SHM - /* only the daemon updates this structure */ - if (ShmId == SM_SHM_NO_ID || DaemonPid != CurrentPid) + if (ShmId != SM_SHM_NO_ID && DaemonPid != CurrentPid) return; #endif /* SM_CONF_SHM */ now = curtime(); diff --git a/usr/src/cmd/sendmail/src/srvrsmtp.c b/usr/src/cmd/sendmail/src/srvrsmtp.c index 4869fc404e..13a83d31f4 100644 --- a/usr/src/cmd/sendmail/src/srvrsmtp.c +++ b/usr/src/cmd/sendmail/src/srvrsmtp.c @@ -19,7 +19,7 @@ # include <libmilter/mfdef.h> #endif /* MILTER */ -SM_RCSID("@(#)$Id: srvrsmtp.c,v 8.924.2.2 2006/05/31 20:56:37 ca Exp $") +SM_RCSID("@(#)$Id: srvrsmtp.c,v 8.924.2.5 2006/07/07 16:29:39 ca Exp $") #include <sm/time.h> #include <sm/fdset.h> @@ -853,8 +853,9 @@ smtp(nullserver, d_flags, e) char state; char *response; - response = milter_connect(peerhostname, RealHostAddr, - e, &state); + q = macvalue(macid("{client_name}"), e); + SM_ASSERT(q != NULL); + response = milter_connect(q, RealHostAddr, e, &state); switch (state) { case SMFIR_REPLYCODE: /* REPLYCODE shouldn't happen */ diff --git a/usr/src/cmd/sendmail/src/version.c b/usr/src/cmd/sendmail/src/version.c index aef44e1b28..36f27f93d1 100644 --- a/usr/src/cmd/sendmail/src/version.c +++ b/usr/src/cmd/sendmail/src/version.c @@ -15,6 +15,6 @@ #include <sm/gen.h> -SM_RCSID("@(#)$Id: version.c,v 8.163.2.4 2006/06/05 22:32:40 ca Exp $") +SM_RCSID("@(#)$Id: version.c,v 8.163.2.8 2006/07/26 17:24:02 ca Exp $") -char Version[] = "8.13.7+Sun"; +char Version[] = "8.13.8+Sun"; |
