提交 ceb0ed9c 编写于 作者: R Rich Felker

fix fd leak (missing close-on-exec) in getifaddrs

上级 5d01ab4a
......@@ -66,7 +66,7 @@ static void ipv6netmask(unsigned prefix_length, struct sockaddr_in6 *sa)
static void dealwithipv6(stor **list, stor** head)
{
FILE* f = fopen("/proc/net/if_inet6", "r");
FILE* f = fopen("/proc/net/if_inet6", "rbe");
/* 00000000000000000000000000000001 01 80 10 80 lo
A B C D E F
all numbers in hex
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册