summaryrefslogtreecommitdiff
path: root/oui.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-03-16 18:09:04 +0100
committerDaniel Borkmann <dborkman@redhat.com>2013-03-16 18:09:04 +0100
commitf66b9f147ecf5db067e36719784a552a5909b3fc (patch)
treec68a61cb9bb84649b40977ab0e45455211905bad /oui.c
parent4262e95c1c0a09c7f98ea6623d364bfda41e8bec (diff)
build: respect PREFIX_STRING on config file locations
When setting a prefix from the build system, also pass this through the hard coded strings for config file locations in the toolkit, so that the installed files (which use PREFIX) can be properly found. Suggested-by: Peter Stuge <peter@stuge.se> Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'oui.c')
-rw-r--r--oui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/oui.c b/oui.c
index 66d7aa4..e735c15 100644
--- a/oui.c
+++ b/oui.c
@@ -43,7 +43,7 @@ void dissector_init_oui(void)
if (initialized)
return;
- fp = fopen("/etc/netsniff-ng/oui.conf", "r");
+ fp = fopen(PREFIX_STRING "/etc/netsniff-ng/oui.conf", "r");
if (!fp)
panic("No oui.conf found!\n");