diff options
Diffstat (limited to 'src/lib/libc/net/ethers.c')
-rw-r--r-- | src/lib/libc/net/ethers.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/net/ethers.c b/src/lib/libc/net/ethers.c index af31bb8e60..07f1da3306 100644 --- a/src/lib/libc/net/ethers.c +++ b/src/lib/libc/net/ethers.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ethers.c,v 1.21 2013/11/24 23:51:28 deraadt Exp $ */ | 1 | /* $OpenBSD: ethers.c,v 1.22 2014/09/15 06:15:48 guenther Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> | 4 | * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> |
@@ -112,7 +112,7 @@ ether_ntohost(char *hostname, struct ether_addr *e) | |||
112 | trylen = strlen(trybuf); | 112 | trylen = strlen(trybuf); |
113 | #endif | 113 | #endif |
114 | 114 | ||
115 | f = fopen(_PATH_ETHERS, "r"); | 115 | f = fopen(_PATH_ETHERS, "re"); |
116 | if (f == NULL) | 116 | if (f == NULL) |
117 | return (-1); | 117 | return (-1); |
118 | while ((p = fgetln(f, &len)) != NULL) { | 118 | while ((p = fgetln(f, &len)) != NULL) { |
@@ -165,7 +165,7 @@ ether_hostton(const char *hostname, struct ether_addr *e) | |||
165 | int hostlen = strlen(hostname); | 165 | int hostlen = strlen(hostname); |
166 | #endif | 166 | #endif |
167 | 167 | ||
168 | f = fopen(_PATH_ETHERS, "r"); | 168 | f = fopen(_PATH_ETHERS, "re"); |
169 | if (f==NULL) | 169 | if (f==NULL) |
170 | return (-1); | 170 | return (-1); |
171 | 171 | ||