pam_access.so not recognizing host name in access.conf

Josef Moellers <[email protected]> Thu, 26 Jan 2017 16:40:22 +0100
Newsgroups gmane.linux.pam
Message-ID <[email protected]>
Hi,
The following specification in access.conf does not work as expected:
-:username:ALL EXCEPT localhost
The manual page access.conf.5 claims that the third field may contain
host names, but the code only checks for numerical IP addresses by
calling inet_pton().
Is this desired behavior or am I missing something.
I'm willing to write a patch.
Josef