diff options
Diffstat (limited to 'sbin/umount')
-rw-r--r-- | sbin/umount/umount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/umount/umount.c b/sbin/umount/umount.c index 01f5ca8..611bace 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); |