git-svn-id: http://svn.ipfire.org/svn/ipfire/IPFire/source@16 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8

This commit is contained in:
ipfire
2006-02-15 21:15:54 +00:00
parent 6d63f4c4b3
commit cd1a292722
1206 changed files with 185026 additions and 0 deletions

View 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);