aboutsummaryrefslogtreecommitdiff
path: root/sbin/mount
diff options
context:
space:
mode:
authorMaxime Henrion <mux@FreeBSD.org>2002-04-23 17:24:02 +0000
committerMaxime Henrion <mux@FreeBSD.org>2002-04-23 17:24:02 +0000
commitda85c82b2a9a4515a166abc2b99a5d8e54a09616 (patch)
tree45e81b7e9338607849cfdd04958642fca48c5bc8 /sbin/mount
parent4a49265d153082b2194a6bd63cea815d3b5ace19 (diff)
Notes
Diffstat (limited to 'sbin/mount')
-rw-r--r--sbin/mount/mount.c6
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 != ':')