summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2004-04-08 12:24:08 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2004-04-08 12:24:08 +0000
commit910abe658add257be1d7deb26027c971df2b9f46 (patch)
treed5e320109adc9c820bb88628cd8acab62428ab6c /usr.sbin/tcpdump
parenta0012b36ebb4fef93306620be98923538c8ba09b (diff)
In error message, use saved errno, not current errno.
From Moritz Jodeit <moritz at jodeit.org>
Diffstat (limited to 'usr.sbin/tcpdump')
-rw-r--r--usr.sbin/tcpdump/privsep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/tcpdump/privsep.c b/usr.sbin/tcpdump/privsep.c
index 1223e83e4a3..af49ac517ce 100644
--- a/usr.sbin/tcpdump/privsep.c
+++ b/usr.sbin/tcpdump/privsep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: privsep.c,v 1.6 2004/04/03 10:20:51 avsm Exp $ */
+/* $OpenBSD: privsep.c,v 1.7 2004/04/08 12:24:07 avsm Exp $ */
/*
* Copyright (c) 2003 Can Erkin Acar
@@ -334,7 +334,7 @@ parent_open_output(int fd, const char *WFileName)
must_write(fd, &err, sizeof(int));
if (file < 0)
logmsg(LOG_DEBUG, "[priv]: failed to open %s: %s",
- WFileName, strerror(errno));
+ WFileName, strerror(err));
else
close(file);
}