Don't try to look up unionfs' <above>, <below> keywords as hostnames.

This commit is contained in:
Doug Rabson 1997-04-29 09:10:11 +00:00
parent 24685462af
commit a0bc68a48e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=25277

View File

@ -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);