freebsd-skq/usr.sbin/rpc.lockd
rstone cb3a27ad28 When mountd is creating sockets, it iterates over all addresses specified
in the "hosts" array and eventually looks up the network address with
getaddrinfo(). At one point it checks for a numeric address and if it
sees one, it sets a hint parameter to force getaddrinfo to interpret the
host as a numeric address. However that hint is not cleared for subsequent
iterations of the loop and if any hosts seen after this point are host names,
getaddrinfo will fail on the name.  The result of this bug is that you cannot
pass a host name to the -h flag.

Unfortunately, the first iteration will either process ::1 or 127.0.0.1,
so the flag is set on the first iteration and all host names will fail
to be processed.

The same bug applies to rpc.lockd and rpc.statd, so fix them too.

Differential Revision:	https://reviews.freebsd.org/D1507
Reported by:	Dylan Martin
MFC after:	1 week
Sponsored by:	Sandvine Inc.
2015-01-19 00:33:32 +00:00
..
kern.c Use prototype. 2014-01-04 01:08:10 +00:00
lock_proc.c Use prototype. 2014-01-04 01:08:10 +00:00
lockd_lock.c
lockd_lock.h
lockd.c When mountd is creating sockets, it iterates over all addresses specified 2015-01-19 00:33:32 +00:00
lockd.h
Makefile Convert usr.sbin to LIBADD 2014-11-25 16:57:27 +00:00
rpc.lockd.8 multiple: Remove 3rd clause from BSD license where approved by the 2014-03-14 03:07:51 +00:00
test.c