799ca69
Index: src/oui.c
1e336b2
===================================================================
1e336b2
RCS file: /cvsroot/bluez/utils/common/oui.c,v
1e336b2
retrieving revision 1.2
1e336b2
diff -u -p -r1.2 oui.c
799ca69
--- src/oui.c	13 Jan 2007 17:48:12 -0000	1.2
799ca69
+++ src/oui.c	25 Jan 2008 12:16:58 -0000
1e336b2
@@ -38,7 +38,7 @@
1e336b2
 
1e336b2
 /* http://standards.ieee.org/regauth/oui/oui.txt */
1e336b2
 
1e336b2
-#define OUIFILE "/var/lib/misc/oui.txt"
1e336b2
+#define OUIFILE "/usr/share/hwdata/oui.txt"
1e336b2
 
1e336b2
 char *ouitocomp(const char *oui)
1e336b2
 {
1e336b2
@@ -46,14 +46,9 @@ char *ouitocomp(const char *oui)
1e336b2
 	char *str, *map, *off, *end;
1e336b2
 	int fd;
1e336b2
 
1e336b2
-	fd = open("oui.txt", O_RDONLY);
1e336b2
+	fd = open(OUIFILE, O_RDONLY);
1e336b2
 	if (fd < 0) {
1e336b2
-		fd = open(OUIFILE, O_RDONLY);
1e336b2
-		if (fd < 0) {
1e336b2
-			fd = open("/usr/share/misc/oui.txt", O_RDONLY);
1e336b2
-			if (fd < 0)
1e336b2
-				return NULL;
1e336b2
-		}
1e336b2
+		return NULL;
1e336b2
 	}
1e336b2
 
1e336b2
 	if (fstat(fd, &st) < 0) {