From b1eaf6f4bcd9f4bf65e22e18d8707e4a7f6c2de3 Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 27 May 2009 12:26:24 +0000 Subject: [PATCH] [package] rtorrent add missing patch after update git-svn-id: svn://svn.openwrt.org/openwrt/packages@16106 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/rtorrent/patches/010-fix_exec_capture_leak.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 net/rtorrent/patches/010-fix_exec_capture_leak.patch diff --git a/net/rtorrent/patches/010-fix_exec_capture_leak.patch b/net/rtorrent/patches/010-fix_exec_capture_leak.patch new file mode 100644 index 000000000..042b73ef5 --- /dev/null +++ b/net/rtorrent/patches/010-fix_exec_capture_leak.patch @@ -0,0 +1,14 @@ +# Fixes a file handle leak in the execute_capture functions. +Index: rtorrent/src/rpc/exec_file.cc +=================================================================== +--- rtorrent/src/rpc/exec_file.cc (revision 1093) ++++ rtorrent/src/rpc/exec_file.cc (working copy) +@@ -123,6 +123,8 @@ + m_capture += std::string(buffer, length); + } while (length > 0); + ++ ::close(pipeFd[0]); ++ + if (m_logFd != -1) { + write(m_logFd, "Captured output:\n", sizeof("Captured output:\n")); + write(m_logFd, m_capture.data(), m_capture.length()); -- 2.11.0