aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/iproute.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/libiproute/iproute.c')
-rw-r--r--networking/libiproute/iproute.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c
index a19586c91..23d416344 100644
--- a/networking/libiproute/iproute.c
+++ b/networking/libiproute/iproute.c
@@ -484,10 +484,9 @@ static int rtnl_rtcache_request(struct rtnl_handle *rth, int family)
484static void iproute_flush_cache(void) 484static void iproute_flush_cache(void)
485{ 485{
486 static const char fn[] = "/proc/sys/net/ipv4/route/flush"; 486 static const char fn[] = "/proc/sys/net/ipv4/route/flush";
487 int flush_fd = open(fn, O_WRONLY); 487 int flush_fd = open_or_warn(fn, O_WRONLY);
488 488
489 if (flush_fd < 0) { 489 if (flush_fd < 0) {
490 bb_perror_msg("cannot open '%s'", fn);
491 return; 490 return;
492 } 491 }
493 492