ping: bind -> xbind
This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)
No binary (build failed)
—
(log yok)
| @@ -330,8 +330,7 @@ static void ping(const char *host) | |
| pingsock = create_icmp_socket(); | |
| if (sourceaddr.sin_addr.s_addr) { | |
| - | if (bind(pingsock, (struct sockaddr*)&sourceaddr, sizeof(sourceaddr)) == -1) |
| - | bb_error_msg_and_die("could not bind to address"); |
| + | xbind(pingsock, (struct sockaddr*)&sourceaddr, sizeof(sourceaddr)); |
| } | |
| memset(&pingaddr, 0, sizeof(struct sockaddr_in)); | |