summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/eui64.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/net/eui64.c')
-rw-r--r--lib/libc/net/eui64.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/eui64.c b/lib/libc/net/eui64.c
index 5085167..d9ed76c 100644
--- a/lib/libc/net/eui64.c
+++ b/lib/libc/net/eui64.c
@@ -227,7 +227,7 @@ eui64_ntohost(char *hostname, size_t len, const struct eui64 *id)
char eui64_a[24];
char *yp_domain;
#endif
- if ((fp = fopen(_PATH_EUI64, "r")) == NULL)
+ if ((fp = fopen(_PATH_EUI64, "re")) == NULL)
return (1);
while (fgets(buf,BUFSIZ,fp)) {
@@ -277,7 +277,7 @@ eui64_hostton(const char *hostname, struct eui64 *id)
int resultlen;
char *yp_domain;
#endif
- if ((fp = fopen(_PATH_EUI64, "r")) == NULL)
+ if ((fp = fopen(_PATH_EUI64, "re")) == NULL)
return (1);
while (fgets(buf,BUFSIZ,fp)) {
OpenPOWER on IntegriCloud