summaryrefslogtreecommitdiff
path: root/gnu/usr.sbin/sendmail/libsm/put.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-01-14 03:21:42 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-01-14 03:21:42 +0000
commit329cc2cc87730afac9b71e587a23dd70c8b53901 (patch)
tree82a4eac04f293758bda7297055a7c8e1236b4b76 /gnu/usr.sbin/sendmail/libsm/put.c
parent67e6877326ec09684a9203da8452b23c01cd134c (diff)
update to sendmail-8.12.2
Diffstat (limited to 'gnu/usr.sbin/sendmail/libsm/put.c')
-rw-r--r--gnu/usr.sbin/sendmail/libsm/put.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/usr.sbin/sendmail/libsm/put.c b/gnu/usr.sbin/sendmail/libsm/put.c
index 309edb2ced0..ee06c5facf4 100644
--- a/gnu/usr.sbin/sendmail/libsm/put.c
+++ b/gnu/usr.sbin/sendmail/libsm/put.c
@@ -13,7 +13,7 @@
*/
#include <sm/gen.h>
-SM_RCSID("@(#)$Sendmail: put.c,v 1.26 2001/09/11 04:04:49 gshapiro Exp $")
+SM_RCSID("@(#)$Sendmail: put.c,v 1.27 2001/12/19 05:19:35 ca Exp $")
#include <string.h>
#include <errno.h>
#include <sm/io.h>
@@ -71,8 +71,10 @@ void
sm_perror(s)
const char *s;
{
+ int save_errno = errno;
+
if (s != NULL && *s != '\0')
(void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT, "%s: ", s);
(void) sm_io_fprintf(smioerr, SM_TIME_DEFAULT, "%s\n",
- sm_errstring(errno));
+ sm_errstring(save_errno));
}