Unbreak NFS mounts when mount(8) is invoked as : mount path@server.

Reviewed by:	obrien
This commit is contained in:
Maxime Henrion 2002-04-23 17:24:02 +00:00
parent 4a49265d15
commit da85c82b2a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=95318

View File

@ -288,7 +288,11 @@ main(argc, argv)
*/
if (vfslist == NULL && ((ep = strchr(argv[0], '@')) != NULL) ||
((ep = strchr(argv[0], ':')) != NULL)) {
cp = argv[0];
if (*ep == '@') {
cp = ep + 1;
ep = cp + strlen(cp);
} else
cp = argv[0];
while (cp != ep) {
if (!isdigit(*cp) && !isalpha(*cp) &&
*cp != '.' && *cp != '-' && *cp != ':')