diff options
Diffstat (limited to 'networking/libiproute/iptunnel.c')
-rw-r--r-- | networking/libiproute/iptunnel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/libiproute/iptunnel.c b/networking/libiproute/iptunnel.c index 52a50993d..a2eb0ccda 100644 --- a/networking/libiproute/iptunnel.c +++ b/networking/libiproute/iptunnel.c | |||
@@ -426,10 +426,9 @@ static void do_tunnels_list(struct ip_tunnel_parm *p) | |||
426 | int type; | 426 | int type; |
427 | struct ip_tunnel_parm p1; | 427 | struct ip_tunnel_parm p1; |
428 | char buf[512]; | 428 | char buf[512]; |
429 | FILE *fp = fopen("/proc/net/dev", "r"); | 429 | FILE *fp = fopen_or_warn("/proc/net/dev", "r"); |
430 | 430 | ||
431 | if (fp == NULL) { | 431 | if (fp == NULL) { |
432 | bb_perror_msg("fopen"); | ||
433 | return; | 432 | return; |
434 | } | 433 | } |
435 | 434 | ||