summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/oui.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/oui.c b/tools/oui.c
index 6ebf91a5..13d6c2f5 100644
--- a/tools/oui.c
+++ b/tools/oui.c
@@ -46,10 +46,12 @@ char *ouitocomp(const char *oui)
char *str, *map, *off, *end;
int fd;
-
- fd = open(OUIFILE, O_RDONLY);
- if (fd < 0)
- return NULL;
+ fd = open("oui.txt", O_RDONLY);
+ if (fd < 0) {
+ fd = open(OUIFILE, O_RDONLY);
+ if (fd < 0)
+ return NULL;
+ }
if (fstat(fd, &st) < 0) {
close(fd);