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:
parent
45a7ac086f
commit
21eff82f63
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84868
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user