From 097635b79bc6ddd6066a8369db6e298a25daa96e Mon Sep 17 00:00:00 2001 From: mbm Date: Tue, 24 Aug 2004 23:50:14 +0000 Subject: massive changes - sstrip cleanup from mjn3 - various patches from nico and others: http://openwrt.org/forum/viewtopic.php?t=368 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@145 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../sources/openwrt/patches/ppp/close_devfd | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 obsolete-buildroot/sources/openwrt/patches/ppp/close_devfd (limited to 'obsolete-buildroot/sources/openwrt/patches/ppp/close_devfd') diff --git a/obsolete-buildroot/sources/openwrt/patches/ppp/close_devfd b/obsolete-buildroot/sources/openwrt/patches/ppp/close_devfd new file mode 100644 index 000000000..987d964aa --- /dev/null +++ b/obsolete-buildroot/sources/openwrt/patches/ppp/close_devfd @@ -0,0 +1,17 @@ +Ensure that the fd returned by the connect method is closed before +running external programs. + +http://article.gmane.org/gmane.linux.ppp/1371 + +diff -ruNp ppp.orig/pppd/main.c ppp/pppd/main.c +--- ppp.orig/pppd/main.c 2004-07-12 12:55:30.000000000 +0200 ++++ ppp/pppd/main.c 2004-07-12 12:55:25.000000000 +0200 +@@ -1662,6 +1662,8 @@ run_program(prog, args, must_exist, done + closelog(); + 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); -- cgit v1.2.3