summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/log.c
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-03-19 14:04:44 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-03-19 14:04:44 +0000
commit0b9f96e56b22f3d0bd8f9fa95204ba7a9e49683f (patch)
tree305096d9429011aed372ea12a527d10602e2a847 /sbin/isakmpd/log.c
parent96c309c384e99b742c4307ece38772c4841ffad2 (diff)
Add missing bits to make already present privsep code work. Enable privsep.
ok ho@ deraadt@ markus@
Diffstat (limited to 'sbin/isakmpd/log.c')
-rw-r--r--sbin/isakmpd/log.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sbin/isakmpd/log.c b/sbin/isakmpd/log.c
index fcc9c217841..5aea77ef993 100644
--- a/sbin/isakmpd/log.c
+++ b/sbin/isakmpd/log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.c,v 1.40 2004/02/25 16:01:28 hshoexer Exp $ */
+/* $OpenBSD: log.c,v 1.41 2004/03/19 14:04:43 hshoexer Exp $ */
/* $EOM: log.c,v 1.30 2000/09/29 08:19:23 niklas Exp $ */
/*
@@ -427,7 +427,12 @@ log_packet_init (char *newname)
}
/* Does the file already exist? XXX lstat() or stat()? */
+#if defined (USE_PRIVSEP)
+ /* XXX This is a fstat! */
+ if (monitor_stat (pcaplog_file, &st) == 0)
+#else
if (lstat (pcaplog_file, &st) == 0)
+#endif
{
/* Sanity checks. */
if ((st.st_mode & S_IFMT) != S_IFREG)