From 90049a54d90557db7c7963c83ba9ff8d3b433c15 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 30 Nov 2005 08:32:00 +0000 Subject: Read oui.txt in current directory first --- tools/oui.c | 10 ++++++---- 1 file 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); -- cgit