Add a patch from the isdn mailinglist, Juha writes:

ppp in 4.x apparently does a close(2) after opening the tun device;
 i4brunppp starts up with only file descriptors 0 and 1 open (to the rbch
 device) -> tun gets opened as 2 -> tun gets closed -> later use results
 in EBADF. A quick fix to i4brunppp.c makes the thing work (I know, this
 is ugly, but I needed it up quick...):

Submitted by:	Juha-Matti Liukkonen <jml@cubical.fi>
This commit is contained in:
Hellmuth Michaelis 2001-07-21 11:52:31 +00:00
parent 868080172d
commit fae7473ba4

View File

@ -164,6 +164,7 @@ main(int argc, char **argv)
i = getdtablesize();
for(;i >= 0; i--)
if (i != 2)
close(i);
/* fiddle a terminating zero after the rbch unit number */