Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:sschapiro:openstack:upstream
bluez
bluez-utils-oui-usage.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bluez-utils-oui-usage.patch of Package bluez
Index: src/oui.c =================================================================== RCS file: /cvsroot/bluez/utils/common/oui.c,v retrieving revision 1.2 diff -u -p -r1.2 oui.c --- src/oui.c 13 Jan 2007 17:48:12 -0000 1.2 +++ src/oui.c 25 Jan 2008 12:16:58 -0000 @@ -38,7 +38,7 @@ /* http://standards.ieee.org/regauth/oui/oui.txt */ -#define OUIFILE "/var/lib/misc/oui.txt" +#define OUIFILE "/usr/share/hwdata/oui.txt" char *ouitocomp(const char *oui) { @@ -46,14 +46,9 @@ char *ouitocomp(const char *oui) char *str, *map, *off, *end; int fd; - fd = open("oui.txt", O_RDONLY); + fd = open(OUIFILE, O_RDONLY); if (fd < 0) { - fd = open(OUIFILE, O_RDONLY); - if (fd < 0) { - fd = open("/usr/share/misc/oui.txt", O_RDONLY); - if (fd < 0) - return NULL; - } + return NULL; } if (fstat(fd, &st) < 0) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor