diff options
author | Thomas Anders <thomas.anders@blue-cable.de> | 2008-01-20 22:45:37 +0000 |
---|---|---|
committer | Thomas Anders <thomas.anders@blue-cable.de> | 2008-01-20 22:45:37 +0000 |
commit | e21c1b7a0c256b8759baa783ac7b7da43f3898bf (patch) | |
tree | 445a20ea28cecfc795e7a705815c950f82d04e3e /debian/patches | |
parent | 8ae7473399fe16e69390f623ef94a0bfe8ebef6e (diff) | |
download | pkg-net-snmp-e21c1b7a0c256b8759baa783ac7b7da43f3898bf.tar.gz |
patch 41_snmptrapd_close_handles has been applied upstream in SVN Rev. 16652
git-svn-id: svn://svn.debian.org/pkg-net-snmp/trunk@219 db575a87-f10d-0410-9662-f1d5ac62e4ba
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/41_snmptrapd_close_handles.README | 1 | ||||
-rw-r--r-- | debian/patches/41_snmptrapd_close_handles.patch | 19 |
2 files changed, 0 insertions, 20 deletions
diff --git a/debian/patches/41_snmptrapd_close_handles.README b/debian/patches/41_snmptrapd_close_handles.README deleted file mode 100644 index e551e1d..0000000 --- a/debian/patches/41_snmptrapd_close_handles.README +++ /dev/null @@ -1 +0,0 @@ -Close all non standard file handles in snmptrapd.c (copied from snmpd.c) diff --git a/debian/patches/41_snmptrapd_close_handles.patch b/debian/patches/41_snmptrapd_close_handles.patch deleted file mode 100644 index 5bf3543..0000000 --- a/debian/patches/41_snmptrapd_close_handles.patch +++ /dev/null @@ -1,19 +0,0 @@ ---- net-snmp-5.3.1/apps/snmptrapd.c.orig 2007-07-06 17:02:00.000000000 +0200 -+++ net-snmp-5.3.1/apps/snmptrapd.c 2007-07-31 16:45:38.000000000 +0200 -@@ -596,6 +596,16 @@ - #endif - netsnmp_trapd_handler *traph; - -+#ifndef WIN32 -+ /* -+ * close all non-standard file descriptors we may have -+ * inherited from the shell. -+ */ -+ for (i = getdtablesize() - 1; i > 2; --i) { -+ (void) close(i); -+ } -+#endif /* #WIN32 */ -+ - #ifdef SIGTERM - signal(SIGTERM, term_handler); - #endif |