diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-06-11 01:27:55 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-06-11 01:27:55 +0800 |
commit | d7cf7820c324c6e6453131654f1e304bcf1f1639 (patch) | |
tree | bd78715441d7e6cd1a8b19ac6e7c25165e4cfaa9 /net | |
parent | 6b72643279616012e60533791daa7b8f71b8fd87 (diff) | |
download | marcuscom-ports-d7cf7820c324c6e6453131654f1e304bcf1f1639.tar.gz marcuscom-ports-d7cf7820c324c6e6453131654f1e304bcf1f1639.tar.zst marcuscom-ports-d7cf7820c324c6e6453131654f1e304bcf1f1639.zip |
Close a potential file descriptor leak in the wireless code.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@2385 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'net')
-rw-r--r-- | net/gnome-netstatus/Makefile | 1 | ||||
-rw-r--r-- | net/gnome-netstatus/files/patch-src_netstatus-sysdeps.c | 7 | ||||
-rw-r--r-- | net/gnomenetstatus/Makefile | 1 | ||||
-rw-r--r-- | net/gnomenetstatus/files/patch-src_netstatus-sysdeps.c | 7 |
4 files changed, 10 insertions, 6 deletions
diff --git a/net/gnome-netstatus/Makefile b/net/gnome-netstatus/Makefile index 9148b24c8..8ef7e2e59 100644 --- a/net/gnome-netstatus/Makefile +++ b/net/gnome-netstatus/Makefile @@ -7,6 +7,7 @@ PORTNAME= gnomenetstatus PORTVERSION= 2.7.1 +PORTREVISION= 1 CATEGORIES= net gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/gnome-netstatus/2.7 diff --git a/net/gnome-netstatus/files/patch-src_netstatus-sysdeps.c b/net/gnome-netstatus/files/patch-src_netstatus-sysdeps.c index f738c7c40..b195b153b 100644 --- a/net/gnome-netstatus/files/patch-src_netstatus-sysdeps.c +++ b/net/gnome-netstatus/files/patch-src_netstatus-sysdeps.c @@ -1,5 +1,5 @@ --- src/netstatus-sysdeps.c.orig Tue Mar 30 04:25:42 2004 -+++ src/netstatus-sysdeps.c Wed Jun 9 15:17:03 2004 ++++ src/netstatus-sysdeps.c Thu Jun 10 13:29:42 2004 @@ -35,6 +35,16 @@ #include <glib.h> #include <libgnome/gnome-i18n.h> @@ -17,7 +17,7 @@ static inline gboolean parse_stats (char *buf, int prx_idx, -@@ -385,6 +395,130 @@ +@@ -385,6 +395,131 @@ } } @@ -44,6 +44,7 @@ + + if (ioctl (s, req_type, &ifr) == -1) { + *error = g_strdup_printf (_("Could not send ioctl to interface, '%s'"), iface); ++ close (s); + return FALSE; + } + @@ -148,7 +149,7 @@ char * netstatus_sysdeps_read_iface_statistics (const char *iface, long *in_packets, -@@ -486,23 +620,6 @@ +@@ -486,23 +621,6 @@ g_strfreev (argv); return error_message; diff --git a/net/gnomenetstatus/Makefile b/net/gnomenetstatus/Makefile index 9148b24c8..8ef7e2e59 100644 --- a/net/gnomenetstatus/Makefile +++ b/net/gnomenetstatus/Makefile @@ -7,6 +7,7 @@ PORTNAME= gnomenetstatus PORTVERSION= 2.7.1 +PORTREVISION= 1 CATEGORIES= net gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/gnome-netstatus/2.7 diff --git a/net/gnomenetstatus/files/patch-src_netstatus-sysdeps.c b/net/gnomenetstatus/files/patch-src_netstatus-sysdeps.c index f738c7c40..b195b153b 100644 --- a/net/gnomenetstatus/files/patch-src_netstatus-sysdeps.c +++ b/net/gnomenetstatus/files/patch-src_netstatus-sysdeps.c @@ -1,5 +1,5 @@ --- src/netstatus-sysdeps.c.orig Tue Mar 30 04:25:42 2004 -+++ src/netstatus-sysdeps.c Wed Jun 9 15:17:03 2004 ++++ src/netstatus-sysdeps.c Thu Jun 10 13:29:42 2004 @@ -35,6 +35,16 @@ #include <glib.h> #include <libgnome/gnome-i18n.h> @@ -17,7 +17,7 @@ static inline gboolean parse_stats (char *buf, int prx_idx, -@@ -385,6 +395,130 @@ +@@ -385,6 +395,131 @@ } } @@ -44,6 +44,7 @@ + + if (ioctl (s, req_type, &ifr) == -1) { + *error = g_strdup_printf (_("Could not send ioctl to interface, '%s'"), iface); ++ close (s); + return FALSE; + } + @@ -148,7 +149,7 @@ char * netstatus_sysdeps_read_iface_statistics (const char *iface, long *in_packets, -@@ -486,23 +620,6 @@ +@@ -486,23 +621,6 @@ g_strfreev (argv); return error_message; |