Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 277464
Collapse All | Expand All

(-)a/bridge-utils-1.4/libbridge/libbridge_init.c (+4 lines)
Lines 49-54 static int isbridge(const struct dirent *entry) Link Here
49
	char path[SYSFS_PATH_MAX];
49
	char path[SYSFS_PATH_MAX];
50
	struct stat st;
50
	struct stat st;
51
51
52
	/* See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=431860 */
53
	if(entry->d_name[0] == '.')
54
		return 0;
55
	
52
	snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/bridge", entry->d_name);
56
	snprintf(path, SYSFS_PATH_MAX, SYSFS_CLASS_NET "%s/bridge", entry->d_name);
53
	return stat(path, &st) == 0 && S_ISDIR(st.st_mode);
57
	return stat(path, &st) == 0 && S_ISDIR(st.st_mode);
54
}
58
}

Return to bug 277464