mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-24 09:13:37 +01:00
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:
parent
868080172d
commit
fae7473ba4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80083
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user