From 43f67e2b2ed60c7b3c73f4c5c564ae3ec7028a0e Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Fri, 16 May 1997 10:27:02 +0000 Subject: Generalise the previous change so that only NFS hostnames are looked up. PR: bin/3588 Suggested by: Joerg Wunsch --- sbin/umount/umount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/umount') 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); -- cgit v1.2.3