freebsd-ports/comms/birda/files/patch-options.c
Pierre Beyssac 502650c7f5 Remove stdio buffering even when not on a tty or pty: this prevents
use of ircomm from a "set device" in ppp(8).

Bump PORTREVISION.
2003-09-04 13:21:38 +00:00

11 lines
252 B
C

--- src/options.c.orig Wed Jan 2 17:22:11 2002
+++ src/options.c Thu Aug 28 17:17:00 2003
@@ -427,6 +427,8 @@
exit(-2);
}
+ setbuf(stdin, 0);
+ setbuf(stdout, 0);
if(pty && !openPty(pty)) {
log("Cannot open pty\n");
exit(-6);