chiark / gitweb /
busybox: Update from 1.28.2 to 1.28.3
[termux-packages] / disabled-packages / apt-updated / methods-connect.cc.patch
1 diff -u -r ../apt-1.6~alpha3/methods/connect.cc ./methods/connect.cc
2 --- ../apt-1.6~alpha3/methods/connect.cc        2017-10-28 17:57:05.000000000 +0200
3 +++ ./methods/connect.cc        2017-11-02 17:47:18.803413361 +0100
4 @@ -164,7 +164,7 @@
5  
6     // Check the socket for an error condition
7     unsigned int Err;
8 -   unsigned int Len = sizeof(Err);
9 +   socklen_t Len = sizeof(Err);
10     if (getsockopt(Fd->Fd(), SOL_SOCKET, SO_ERROR, &Err, &Len) != 0)
11        return _error->Errno("getsockopt",_("Failed"));
12     
13 @@ -335,7 +335,10 @@
14     if(LastHost != Host || LastPort != Port)
15     {
16        SrvRecords.clear();
17 -      if (_config->FindB("Acquire::EnableSrvRecords", true) == true)
18 +      /* Disable by default in Termux due to it breaking on (some) HTC
19 +         devices (https://github.com/termux/termux-packages/issues/99). */
20 +       
21 +        if (_config->FindB("Acquire::EnableSrvRecords", false) == true)
22        {
23           GetSrvRecords(Host, DefPort, SrvRecords);
24          // RFC2782 defines that a lonely '.' target is an abort reason