diff options
author | Ian Dowse <iedowse@FreeBSD.org> | 2001-10-13 02:04:54 +0000 |
---|---|---|
committer | Ian Dowse <iedowse@FreeBSD.org> | 2001-10-13 02:04:54 +0000 |
commit | 21eff82f639a70b547c03c3438095274de03f5b3 (patch) | |
tree | 458feba4acd694b5c2e894d4f8179e100a72649d /sbin/umount | |
parent | 45a7ac086f67795d8c4fe9a6ecbe702ff3ab99e7 (diff) | |
download | src-21eff82f639a70b547c03c3438095274de03f5b3.tar.gz src-21eff82f639a70b547c03c3438095274de03f5b3.zip |
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.
Notes
Notes:
svn path=/head/; revision=84868
Diffstat (limited to 'sbin/umount')
-rw-r--r-- | sbin/umount/umount.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/umount/umount.c b/sbin/umount/umount.c index 5c9bb7bd4e7a..6148f3022315 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) { |