Gentoo Archives: gentoo-commits

From: "Sven Wegener (swegener)" <swegener@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/bmon/files: bmon-2.1.0-sysfs-symlink.patch
Date: Sat, 30 Jan 2010 22:18:27
Message-Id: E1NbLe3-0000ct-EZ@stork.gentoo.org
1 swegener 10/01/30 22:18:23
2
3 Added: bmon-2.1.0-sysfs-symlink.patch
4 Log:
5 Add a patch to make bmon work with newer sysfs that has symlinks for net devices.
6 (Portage version: 2.2_rc62/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 net-analyzer/bmon/files/bmon-2.1.0-sysfs-symlink.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/bmon/files/bmon-2.1.0-sysfs-symlink.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/bmon/files/bmon-2.1.0-sysfs-symlink.patch?rev=1.1&content-type=text/plain
13
14 Index: bmon-2.1.0-sysfs-symlink.patch
15 ===================================================================
16 --- bmon/src/in_sysfs.c
17 +++ bmon/src/in_sysfs.c
18 @@ -164,7 +164,7 @@
19 quit("Failed to open directory %s: %s\n", topdir, strerror(errno));
20
21 while ((de = readdir(d))) {
22 - if (de->d_type == DT_DIR && de->d_name[0] != '.') {
23 + if ((de->d_type == DT_DIR || de->d_type == DT_LNK) && de->d_name[0] != '.') {
24 char p[FILENAME_MAX];
25
26 snprintf(p, sizeof(p), "%s/%s/statistics",