]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/ppp-2.4.2-close.patch
git-svn-id: http://svn.ipfire.org/svn/ipfire/IPFire/source@16 ea5c0bd1-69bd-2848...
[people/teissler/ipfire-2.x.git] / src / patches / ppp-2.4.2-close.patch
1 diff -ur ppp-2.4.2.old/pppd/main.c ppp-2.4.2/pppd/main.c
2 --- ppp-2.4.2.old/pppd/main.c 2004-01-13 04:00:34.000000000 +0000
3 +++ ppp-2.4.2/pppd/main.c 2004-05-24 19:05:34.000000000 +0100
4 @@ -1662,8 +1648,11 @@
5
6 /* Ensure that nothing of our device environment is inherited. */
7 closelog();
8 + /* Some plugins dont have a close function, so just close the devfd */
9 if (the_channel->close)
10 (*the_channel->close)();
11 + else
12 + close(devfd);
13
14 /* Don't pass handles to the PPP device, even by accident. */
15 dup2(fd_devnull, 0);