Unbreak NFS mounts when mount(8) is invoked as : mount path@server.
Reviewed by: obrien
This commit is contained in:
parent
4a49265d15
commit
da85c82b2a
@ -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 != ':')
|
||||
|
Loading…
x
Reference in New Issue
Block a user