From: Florian Fainelli Date: Wed, 27 May 2009 12:26:24 +0000 (+0000) Subject: [package] rtorrent add missing patch after update X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=e5dd2e01128a9abdda93be4e9ccf1483df68d08d [package] rtorrent add missing patch after update SVN-Revision: 16106 --- 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 0000000000..042b73ef55 --- /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());