From a330124c26567659f373575e48d63852a96a18b3 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 7 Dec 2005 11:45:01 +0000 Subject: Use /var/lib/misc/oui.txt as default OUI file --- tools/oui.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/oui.c b/tools/oui.c index 13d6c2f5..b68ae04b 100644 --- a/tools/oui.c +++ b/tools/oui.c @@ -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) { -- cgit