]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Add a note about prior likely being a libc bug.
authorRoy Marples <roy@marples.name>
Tue, 20 Aug 2019 22:12:56 +0000 (23:12 +0100)
committerRoy Marples <roy@marples.name>
Tue, 20 Aug 2019 22:12:56 +0000 (23:12 +0100)
src/if.c

index d9f5d19f2b92631fa8b4f34d6231f9f17ad175c6..efc92efaaa10853be62a484a1f6e8a47b813d558 100644 (file)
--- a/src/if.c
+++ b/src/if.c
@@ -513,6 +513,9 @@ if_discover(struct dhcpcd_ctx *ctx, struct ifaddrs **ifaddrs,
                }
 #ifdef SIOCGIFHWADDR
                else {
+                       /* This is a huge bug in getifaddrs(3) as there
+                        * is no reason why this can't be returned in
+                        * ifa_addr. */
                        memset(&ifr, 0, sizeof(ifr));
                        strlcpy(ifr.ifr_name, ifa->ifa_name,
                            sizeof(ifr.ifr_name));