summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1997-04-29 09:10:11 +0000
committerdfr <dfr@FreeBSD.org>1997-04-29 09:10:11 +0000
commit39cc207873a417d2ad4df487d720be65643ffa45 (patch)
tree69ce69b7c56fa25fc66700e9e51c9ba5b338cdd5 /sbin
parentab822731352b40dac8fe94bb90ec84f0549429ef (diff)
downloadFreeBSD-src-39cc207873a417d2ad4df487d720be65643ffa45.zip
FreeBSD-src-39cc207873a417d2ad4df487d720be65643ffa45.tar.gz
Don't try to look up unionfs' <above>, <below> keywords as hostnames.
Diffstat (limited to 'sbin')
-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 8945a66..01f5ca8 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) {
+ if ((delimp = strchr(name, '@')) != NULL && type != MOUNT_UNION) {
hostp = delimp + 1;
*delimp = '\0';
hp = gethostbyname(hostp);
*delimp = '@';
- } else if ((delimp = strchr(name, ':')) != NULL) {
+ } else if ((delimp = strchr(name, ':')) != NULL && type != MOUNT_UNION) {
*delimp = '\0';
hostp = name;
hp = gethostbyname(hostp);
OpenPOWER on IntegriCloud