summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-01-20 19:51:37 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-01-20 19:51:37 +0000
commit5071b316f1866495582b4347a2fa2b465031d71c (patch)
treeec734a8a39b0cc42bf317a65fd9948b2436d7b33 /usr.sbin
parent81b6eba3f023b3c347e4bd8d79104abe6c5d9257 (diff)
use LOG_NDELAY in chroot() using daemons
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/portmap/portmap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/portmap/portmap.c b/usr.sbin/portmap/portmap.c
index afd0892bd98..38c12819a8e 100644
--- a/usr.sbin/portmap/portmap.c
+++ b/usr.sbin/portmap/portmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: portmap.c,v 1.26 2002/08/26 03:03:27 pvalchev Exp $ */
+/* $OpenBSD: portmap.c,v 1.27 2003/01/20 19:51:36 deraadt Exp $ */
/*-
* Copyright (c) 1996, 1997 Theo de Raadt (OpenBSD). All rights reserved.
@@ -44,7 +44,7 @@ char copyright[] =
#if 0
static char sccsid[] = "from: @(#)portmap.c 5.4 (Berkeley) 4/19/91";
#else
-static char rcsid[] = "$OpenBSD: portmap.c,v 1.26 2002/08/26 03:03:27 pvalchev Exp $";
+static char rcsid[] = "$OpenBSD: portmap.c,v 1.27 2003/01/20 19:51:36 deraadt Exp $";
#endif
#endif /* not lint */
@@ -142,7 +142,7 @@ main(int argc, char *argv[])
exit(1);
}
- openlog("portmap", debugging ? LOG_PID | LOG_PERROR : LOG_PID,
+ openlog("portmap", LOG_NDELAY | (debugging ? LOG_PID | LOG_PERROR : LOG_PID),
LOG_DAEMON);
bzero((char *)&addr, sizeof addr);