My fixes to net-2 code...

-- Mike <jaggy@purplet.demon.co.uk>


The following files have been changed to handle shadow passwords. This
is full support including the support for the use of @... in the password
field to specify and external validation program (see the shadow suite
for details). Shadow support is enabled if SHADOWPWD is defined at compile
time (which it is in the supplied makefiles). As with my previous shadow
madifications to various things you must link against libshadow.a (from
the shadow suite) plus you must have added valid.o (from the shadow suite
sources) to libshadow.a. valid.o isn't added to the library by default
but saves reinventing the wheel...

bwnfsd/makefile
bwnfsd/bwnfsd.c

ftpd/Makefile
ftpd/ftpd.c

pcnfsd/makefile
pcnfsd/pcnfsd.c

popd/Makefile
popd/util.c



The next set of files (some of which may be the same as files above) have
modifications to parts of code using getnetbyname(). In libc 4.4 and
earlier getnetbyname() appears to be slightly broken in that it is
setting the n_net field to (unsigned)-1 (This is why route add 127.0.0.0
adds a route for 255.255.255.255). The fix used is to check the n_net
field and if it is (unsigned)-1 we use inet_addr(xxx->n_name) instead.

net/route.c
routed/query/query.c
routed/startup.c
bwnfsd/bwnfsd.c
