mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 21:54:33 +08:00
Use /var/lib/misc/oui.txt as default OUI file
This commit is contained in:
parent
27454e3869
commit
a330124c26
@ -38,7 +38,7 @@
|
||||
|
||||
/* http://standards.ieee.org/regauth/oui/oui.txt */
|
||||
|
||||
#define OUIFILE "/usr/share/misc/oui.txt"
|
||||
#define OUIFILE "/var/lib/misc/oui.txt"
|
||||
|
||||
char *ouitocomp(const char *oui)
|
||||
{
|
||||
@ -49,8 +49,11 @@ char *ouitocomp(const char *oui)
|
||||
fd = open("oui.txt", O_RDONLY);
|
||||
if (fd < 0) {
|
||||
fd = open(OUIFILE, O_RDONLY);
|
||||
if (fd < 0)
|
||||
return NULL;
|
||||
if (fd < 0) {
|
||||
fd = open("/usr/share/misc/oui.txt", O_RDONLY);
|
||||
if (fd < 0)
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
if (fstat(fd, &st) < 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user