mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-11 09:48:24 +02:00
git-svn-id: http://svn.ipfire.org/svn/ipfire/IPFire/source@16 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
15
src/patches/ppp-2.4.2-close.patch
Normal file
15
src/patches/ppp-2.4.2-close.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
diff -ur ppp-2.4.2.old/pppd/main.c ppp-2.4.2/pppd/main.c
|
||||
--- ppp-2.4.2.old/pppd/main.c 2004-01-13 04:00:34.000000000 +0000
|
||||
+++ ppp-2.4.2/pppd/main.c 2004-05-24 19:05:34.000000000 +0100
|
||||
@@ -1662,8 +1648,11 @@
|
||||
|
||||
/* Ensure that nothing of our device environment is inherited. */
|
||||
closelog();
|
||||
+ /* Some plugins dont have a close function, so just close the devfd */
|
||||
if (the_channel->close)
|
||||
(*the_channel->close)();
|
||||
+ else
|
||||
+ close(devfd);
|
||||
|
||||
/* Don't pass handles to the PPP device, even by accident. */
|
||||
dup2(fd_devnull, 0);
|
||||
Reference in New Issue
Block a user