diff options
author | alfred <alfred@FreeBSD.org> | 2002-04-11 07:19:30 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-04-11 07:19:30 +0000 |
commit | f9f60207318d6373f0da852a06b1463e95641fec (patch) | |
tree | 9e2d20f2512263de519faac2a39ea4d66a2d62f8 /usr.sbin | |
parent | 6eabd84783ab10631f2f860b4dbcfebec5bdc1e8 (diff) | |
download | FreeBSD-src-f9f60207318d6373f0da852a06b1463e95641fec.zip FreeBSD-src-f9f60207318d6373f0da852a06b1463e95641fec.tar.gz |
When binding to transports if getnetconfigent() fails then actually
print out the correct transport it failed on rather than always
spitting out 'udp', also call nc_sperror() to give a more verbose
error message detailing the problem.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rpc.lockd/lockd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/rpc.lockd/lockd.c b/usr.sbin/rpc.lockd/lockd.c index a31f6a0..2f56aba 100644 --- a/usr.sbin/rpc.lockd/lockd.c +++ b/usr.sbin/rpc.lockd/lockd.c @@ -142,7 +142,8 @@ main(argc, argv) for (i = 0; i < maxindex; i++) { nconf = getnetconfigent(transports[i]); if (nconf == NULL) - errx(1, "cannot get udp netconf."); + errx(1, "cannot get %s netconf: %s.", transports[i], + nc_sperror()); transp = svc_tli_create(RPC_ANYFD, nconf, NULL, 0, 0); if (transp == NULL) { |