summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/ui.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2001-12-03 16:17:18 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2001-12-03 16:17:18 +0000
commite77d25334dbbb1cb4cf6fb10b43f3cf990089325 (patch)
tree733ccd8650a9ea52f7ca045afd94d86335af28a6 /sbin/isakmpd/ui.c
parent4eea90c64831b29ee75a7a7a2c2d541ac447c32c (diff)
Change UI fifo open to O_RDWR to avoid problems on some OSes (such as
FreeBSD). Reported by Tariq Rashid <tariq@inty.net>.
Diffstat (limited to 'sbin/isakmpd/ui.c')
-rw-r--r--sbin/isakmpd/ui.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/isakmpd/ui.c b/sbin/isakmpd/ui.c
index c36f861dfdf..0483b8e9dbf 100644
--- a/sbin/isakmpd/ui.c
+++ b/sbin/isakmpd/ui.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ui.c,v 1.23 2001/11/22 11:10:45 ho Exp $ */
+/* $OpenBSD: ui.c,v 1.24 2001/12/03 16:17:17 ho Exp $ */
/* $EOM: ui.c,v 1.43 2000/10/05 09:25:12 niklas Exp $ */
/*
@@ -89,8 +89,7 @@ ui_init (void)
if (mkfifo (ui_fifo, 0600) == -1)
log_fatal ("ui_init: mkfifo (\"%s\", 0600) failed", ui_fifo);
- /* XXX Is O_RDWR needed on some OSes? Photurisd seems to imply that. */
- ui_socket = open (ui_fifo, O_RDONLY | O_NONBLOCK, 0);
+ ui_socket = open (ui_fifo, O_RDWR | O_NONBLOCK, 0);
if (ui_socket == -1)
log_fatal ("ui_init: open (\"%s\", O_RDONLY | O_NONBLOCK, 0) failed",
ui_fifo);