diff options
| author | Maxime Henrion <mux@FreeBSD.org> | 2002-04-23 17:24:02 +0000 |
|---|---|---|
| committer | Maxime Henrion <mux@FreeBSD.org> | 2002-04-23 17:24:02 +0000 |
| commit | da85c82b2a9a4515a166abc2b99a5d8e54a09616 (patch) | |
| tree | 45e81b7e9338607849cfdd04958642fca48c5bc8 /sbin/mount | |
| parent | 4a49265d153082b2194a6bd63cea815d3b5ace19 (diff) | |
Notes
Diffstat (limited to 'sbin/mount')
| -rw-r--r-- | sbin/mount/mount.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/mount/mount.c b/sbin/mount/mount.c index b3ffc3af36ee..ab7179952ebb 100644 --- a/sbin/mount/mount.c +++ b/sbin/mount/mount.c @@ -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 != ':') |
