diff options
author | dfr <dfr@FreeBSD.org> | 1997-05-16 10:27:02 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1997-05-16 10:27:02 +0000 |
commit | 573a396aa7b880afab0e3d3bbc9957183e7af94c (patch) | |
tree | 50694b651577c53713987ff6d7b763d563e8384f /sbin | |
parent | 12c4ced9facdc83ee17709502465428fa1b4c5ed (diff) | |
download | FreeBSD-src-573a396aa7b880afab0e3d3bbc9957183e7af94c.zip FreeBSD-src-573a396aa7b880afab0e3d3bbc9957183e7af94c.tar.gz |
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>
Diffstat (limited to 'sbin')
-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); |