Oops, fix a missing condition that broke umount's `-h' option. I

had somehow removed an error check in revision 1.26, causing errx()
to be called unconditionally in the -h case.
This commit is contained in:
Ian Dowse 2001-10-13 02:04:54 +00:00
parent 45a7ac086f
commit 21eff82f63
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84868

View File

@ -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) {