summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-11-30 08:32:00 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-11-30 08:32:00 +0000
commit90049a54d90557db7c7963c83ba9ff8d3b433c15 (patch)
treec70ced67c10e7a7a082f52d29fc85c031faadb14 /tools
parentdc443fe8e6f81ae76f034e6acdc8ab5adca228fc (diff)
Read oui.txt in current directory first
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);