summaryrefslogtreecommitdiff
path: root/sbin/mount_nfs/mount_nfs.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-05-08 08:53:04 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-05-08 08:53:04 +0000
commit180985eb10a03852d66c30edde0ccf51e4471bd8 (patch)
tree474d7744fbe1cbe95e5b82bbc66e3fdd04a56ec1 /sbin/mount_nfs/mount_nfs.c
parent380ad790fd8096abeff3985f2bc707ee335e503b (diff)
Clarified warning messages a bit
Diffstat (limited to 'sbin/mount_nfs/mount_nfs.c')
-rw-r--r--sbin/mount_nfs/mount_nfs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c
index 60694b9f81d..30769513510 100644
--- a/sbin/mount_nfs/mount_nfs.c
+++ b/sbin/mount_nfs/mount_nfs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mount_nfs.c,v 1.4 1996/04/21 23:46:50 deraadt Exp $ */
+/* $OpenBSD: mount_nfs.c,v 1.5 1996/05/08 08:53:03 niklas Exp $ */
/* $NetBSD: mount_nfs.c,v 1.12 1996/04/13 01:31:43 jtc Exp $ */
/*
@@ -587,14 +587,15 @@ getnfsargs(spec, nfsargsp)
if ((nfsargsp->flags & NFSMNT_KERB)) {
if ((hp = gethostbyaddr((char *)&saddr.sin_addr.s_addr,
sizeof (u_long), AF_INET)) == (struct hostent *)0) {
- warnx("can't reverse resolve net address");
+ warnx("can't resolve hostname for address %s",
+ hostp);
return (0);
}
}
} else {
hp = gethostbyname(hostp);
if (hp == NULL) {
- warnx("can't get net id for host");
+ warnx("can't resolve address for host %s", hostp);
return (0);
}
memcpy(&saddr.sin_addr, hp->h_addr, hp->h_length);