Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: /etc/exports is now being read incorrectly



    Date:        Wed, 23 Dec 2015 12:02:21 +0100
    From:        Martin Husemann <martin%duskware.de@localhost>
    Message-ID:  <20151223110221.GA6071%mail.duskware.de@localhost>

  | Can you (easily) test whether r1.113 of
  | src/lib/libc/net/getaddrinfo.c did this?

I haven't tested, but just from looking at it, it almost certainly did.

inet_aton() (and inet_pton()) for IPv4 typically treated dotted-quads
that weren't quads that way, and that commit made the code use inet_aton()
when it had not previously.

I'm not sure this is really worth changing though, expressing an IPv4
address literal in any form without all three dots has never been defined
to mean anything at all, and interpreting the address differently
depending upon the number of bits that end up being needed is just
a recipe for disaster.

kre



Home | Main Index | Thread Index | Old Index