Fix tab completion mounts (like /cdrom/)
Submitted by: Martin Blapp <mb@imp.ch>
This commit is contained in:
parent
9bcde22f7a
commit
2b184c5087
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55118
@ -265,6 +265,7 @@ main(argc, argv)
|
|||||||
mntbuf->f_mntonname, init_flags, options, 0);
|
mntbuf->f_mntonname, init_flags, options, 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
rmslashes(*argv, *argv);
|
||||||
if ((fs = getfsfile(*argv)) == NULL &&
|
if ((fs = getfsfile(*argv)) == NULL &&
|
||||||
(fs = getfsspec(*argv)) == NULL)
|
(fs = getfsspec(*argv)) == NULL)
|
||||||
errx(1, "%s: unknown special file or file system",
|
errx(1, "%s: unknown special file or file system",
|
||||||
|
@ -265,6 +265,7 @@ main(argc, argv)
|
|||||||
mntbuf->f_mntonname, init_flags, options, 0);
|
mntbuf->f_mntonname, init_flags, options, 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
rmslashes(*argv, *argv);
|
||||||
if ((fs = getfsfile(*argv)) == NULL &&
|
if ((fs = getfsfile(*argv)) == NULL &&
|
||||||
(fs = getfsspec(*argv)) == NULL)
|
(fs = getfsspec(*argv)) == NULL)
|
||||||
errx(1, "%s: unknown special file or file system",
|
errx(1, "%s: unknown special file or file system",
|
||||||
|
Loading…
Reference in New Issue
Block a user