]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/patches/ppp-2.4.2-close.patch
git-svn-id: http://svn.ipfire.org/svn/ipfire/IPFire/source@16 ea5c0bd1-69bd-2848...
[people/pmueller/ipfire-2.x.git] / src / patches / ppp-2.4.2-close.patch
diff --git a/src/patches/ppp-2.4.2-close.patch b/src/patches/ppp-2.4.2-close.patch
new file mode 100644 (file)
index 0000000..5da8265
--- /dev/null
@@ -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);