summaryrefslogtreecommitdiffstats
path: root/libexec/bootpd/getether.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/bootpd/getether.c')
-rw-r--r--libexec/bootpd/getether.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/bootpd/getether.c b/libexec/bootpd/getether.c
index 8f95a59..071b5fc 100644
--- a/libexec/bootpd/getether.c
+++ b/libexec/bootpd/getether.c
@@ -18,6 +18,7 @@
#endif
#include <ctype.h>
+#include <paths.h>
#include <syslog.h>
#include "getether.h"
@@ -195,7 +196,7 @@ getether(ifname, eap)
char *enaddr;
int unit = -1; /* which unit to attach */
- snprintf(devname, sizeof(devname), "/dev/%s", ifname);
+ snprintf(devname, sizeof(devname), "%s%s", _PATH_DEV, ifname);
fd = open(devname, 2);
if (fd < 0) {
/* Try without the trailing digit. */
OpenPOWER on IntegriCloud