blob: 826af8aa9c8c7d6f25ba1f08539346b389828875 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
$NetBSD: patch-aa,v 1.2 2003/11/14 13:36:21 tron Exp $
--- arpd.c.orig 1998-05-24 16:14:13.000000000 +0200
+++ arpd.c 2003-11-14 14:35:02.000000000 +0100
@@ -47,8 +47,8 @@
#include <stdio.h>
#include <string.h>
#include <syslog.h>
-#include <varargs.h>
#include <pcap.h>
+#include <errno.h>
#include "error.h"
#include "arpd.h"
#include "wraplib.h"
@@ -205,12 +205,15 @@
struct if_elm *pIf_elm;
progname = "arpd"; /* for err_xxx */
- if (argc > 1)
+ if (argc > 1) {
pF = fopen(argv[1], "r");
- else
- pF = fopen("/usr/local/etc/arpd.conf", "r");
- if (pF == NULL)
- err_sys("fopen");
+ if (pF == NULL)
+ err_sys("fopen %s", argv[1]);
+ } else {
+ pF = fopen(PREFIX "/etc/arpd.conf", "r");
+ if (pF == NULL)
+ err_sys("fopen " PREFIX "/etc/arpd.conf");
+ }
Read_conf(pF);
fclose(pF);
|