component/userhosts: use github.com/figiel/hosts to workaround recent libc
In ubuntu 21.04 (libc6 2.33-0ubuntu5) or current debian testing (libc6 2.32-5) no longer use open to open /etc/hosts, but what appears as "openat" in strace output - but can not be injected by This uses https://github.com/figiel/hosts which uses another approach of overloading getaddrinfo, gethostbyname* and inet_aton. This does not original version of libuserhosts, but a version slightly modified to behave the same way as nexedi's userhosts.
Showing
Please register or sign in to comment