aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/arp.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/pending/arp.c')
-rw-r--r--toys/pending/arp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/arp.c b/toys/pending/arp.c
index e725112b..6b57c3ca 100644
--- a/toys/pending/arp.c
+++ b/toys/pending/arp.c
@@ -245,7 +245,7 @@ void arp_main(void)
if ((toys.optflags & FLAG_d) && !delete_entry()) return;
//show arp chache
- fd = xopen("/proc/net/arp", O_RDONLY);
+ fd = xopenro("/proc/net/arp");
buf = get_line(fd);
free(buf); //skip first line