summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2010-01-30 22:18:23 +0000
committerSven Wegener <swegener@gentoo.org>2010-01-30 22:18:23 +0000
commit7fda7eb00b7098342e80d234f4b290879f39a1e0 (patch)
treebc6fe30e429104ebd27b4c3caa7a2d6a36ee92a4 /net-analyzer/bmon/files/bmon-2.1.0-sysfs-symlink.patch
parentProperly split off src_configure for EAPI 3. (diff)
downloadgentoo-2-7fda7eb00b7098342e80d234f4b290879f39a1e0.tar.gz
gentoo-2-7fda7eb00b7098342e80d234f4b290879f39a1e0.tar.bz2
gentoo-2-7fda7eb00b7098342e80d234f4b290879f39a1e0.zip
Add a patch to make bmon work with newer sysfs that has symlinks for net devices.
(Portage version: 2.2_rc62/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/bmon/files/bmon-2.1.0-sysfs-symlink.patch')
-rw-r--r--net-analyzer/bmon/files/bmon-2.1.0-sysfs-symlink.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/net-analyzer/bmon/files/bmon-2.1.0-sysfs-symlink.patch b/net-analyzer/bmon/files/bmon-2.1.0-sysfs-symlink.patch
new file mode 100644
index 000000000000..08fd70dd60fe
--- /dev/null
+++ b/net-analyzer/bmon/files/bmon-2.1.0-sysfs-symlink.patch
@@ -0,0 +1,11 @@
+--- bmon/src/in_sysfs.c
++++ bmon/src/in_sysfs.c
+@@ -164,7 +164,7 @@
+ quit("Failed to open directory %s: %s\n", topdir, strerror(errno));
+
+ while ((de = readdir(d))) {
+- if (de->d_type == DT_DIR && de->d_name[0] != '.') {
++ if ((de->d_type == DT_DIR || de->d_type == DT_LNK) && de->d_name[0] != '.') {
+ char p[FILENAME_MAX];
+
+ snprintf(p, sizeof(p), "%s/%s/statistics",