summaryrefslogtreecommitdiffstats
path: root/sbin/umount
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/umount')
-rw-r--r--sbin/umount/umount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/umount/umount.c b/sbin/umount/umount.c
index 5c9bb7b..6148f30 100644
--- a/sbin/umount/umount.c
+++ b/sbin/umount/umount.c
@@ -140,7 +140,8 @@ main(int argc, char *argv[])
if (nfshost != NULL) {
memset(&hints, 0, sizeof hints);
error = getaddrinfo(nfshost, NULL, &hints, &nfshost_ai);
- errx(1, "%s: %s", nfshost, gai_strerror(error));
+ if (error)
+ errx(1, "%s: %s", nfshost, gai_strerror(error));
}
switch (all) {
OpenPOWER on IntegriCloud