aboutsummaryrefslogtreecommitdiff
path: root/sbin/umount
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>1997-05-16 10:27:02 +0000
committerDoug Rabson <dfr@FreeBSD.org>1997-05-16 10:27:02 +0000
commit43f67e2b2ed60c7b3c73f4c5c564ae3ec7028a0e (patch)
tree400f9a08f39f33df25e47e6347020b8ce7bf099b /sbin/umount
parent740a435538e6f67f5b4a509c299666f562b545f1 (diff)
downloadsrc-43f67e2b2ed60c7b3c73f4c5c564ae3ec7028a0e.tar.gz
src-43f67e2b2ed60c7b3c73f4c5c564ae3ec7028a0e.zip
Generalise the previous change so that only NFS hostnames are looked up.
PR: bin/3588 Suggested by: Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de>
Notes
Notes: svn path=/head/; revision=25852
Diffstat (limited to 'sbin/umount')
-rw-r--r--sbin/umount/umount.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/umount/umount.c b/sbin/umount/umount.c
index 01f5ca839f80..611bace79d8a 100644
--- a/sbin/umount/umount.c
+++ b/sbin/umount/umount.c
@@ -219,12 +219,12 @@ umountfs(name)
if (!selected(type))
return (0);
- if ((delimp = strchr(name, '@')) != NULL && type != MOUNT_UNION) {
+ if ((delimp = strchr(name, '@')) != NULL && type == MOUNT_NFS) {
hostp = delimp + 1;
*delimp = '\0';
hp = gethostbyname(hostp);
*delimp = '@';
- } else if ((delimp = strchr(name, ':')) != NULL && type != MOUNT_UNION) {
+ } else if ((delimp = strchr(name, ':')) != NULL && type == MOUNT_NFS) {
*delimp = '\0';
hostp = name;
hp = gethostbyname(hostp);