diff options
| -rw-r--r-- | tools/oui.c | 9 | 
1 files 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) { | 
