Don't pass EX_TEMPFAIL code out (since we have already taken responsibility
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Tue, 8 Mar 1983 01:57:14 +0000 (17:57 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Tue, 8 Mar 1983 01:57:14 +0000 (17:57 -0800)
for delivering the message anyway).

SCCS-mr: usr.sbin/sendmail/src/version.c 203
SCCS-mr: usr.sbin/sendmail/src/sendmail.h 203
SCCS-mr: usr.sbin/sendmail/src/main.c 203
SCCS-vsn: usr.sbin/sendmail/src/version.c 3.324
SCCS-vsn: usr.sbin/sendmail/src/sendmail.h 3.117
SCCS-vsn: usr.sbin/sendmail/src/main.c 3.157

usr/src/usr.sbin/sendmail/src/main.c
usr/src/usr.sbin/sendmail/src/sendmail.h
usr/src/usr.sbin/sendmail/src/version.c

index ed0c857..371d1f2 100644 (file)
@@ -4,7 +4,7 @@
 # include "sendmail.h"
 # include <sys/file.h>
 
 # include "sendmail.h"
 # include <sys/file.h>
 
-SCCSID(@(#)main.c      3.156           %G%);
+SCCSID(@(#)main.c      3.157           %G%);
 
 /*
 **  SENDMAIL -- Post mail to a set of destinations.
 
 /*
 **  SENDMAIL -- Post mail to a set of destinations.
@@ -638,6 +638,8 @@ finis()
        if (LogLevel > 11)
                syslog(LOG_DEBUG, "finis, pid=%d", getpid());
 # endif LOG
        if (LogLevel > 11)
                syslog(LOG_DEBUG, "finis, pid=%d", getpid());
 # endif LOG
+       if (ExitStat == EX_TEMPFAIL)
+               ExitStat = EX_OK;
        exit(ExitStat);
 }
 \f/*
        exit(ExitStat);
 }
 \f/*
index aa5623b..9fdd63a 100644 (file)
@@ -7,7 +7,7 @@
 # ifdef _DEFINE
 # define EXTERN
 # ifndef lint
 # ifdef _DEFINE
 # define EXTERN
 # ifndef lint
-static char SmailSccsId[] =    "@(#)sendmail.h 3.116           %G%";
+static char SmailSccsId[] =    "@(#)sendmail.h 3.117           %G%";
 # endif lint
 # else  _DEFINE
 # define EXTERN extern
 # endif lint
 # else  _DEFINE
 # define EXTERN extern
@@ -473,10 +473,13 @@ EXTERN u_char     tTdvect[100];
 */
 
 /* set exit status */
 */
 
 /* set exit status */
-# define setstat(s)            { if (ExitStat == EX_OK) ExitStat = s; }
+#define setstat(s)     { \
+                               if (ExitStat == EX_OK || ExitStat == EX_TEMPFAIL) \
+                                       ExitStat = s; \
+                       }
 
 /* make a copy of a string */
 
 /* make a copy of a string */
-# define newstr(s)             strcpy(xalloc(strlen(s) + 1), s)
+#define newstr(s)      strcpy(xalloc(strlen(s) + 1), s)
 
 
 /*
 
 
 /*
index 7d6b124..26a2997 100644 (file)
@@ -1,5 +1,5 @@
 # ifndef lint
 # ifndef lint
-static char    SccsId[] = "@(#)SendMail version 3.323 of %G%";
+static char    SccsId[] = "@(#)SendMail version 3.324 of %G%";
 # endif lint
 
 # endif lint
 
-char   Version[] = "3.323";
+char   Version[] = "3.324";