summaryrefslogtreecommitdiffstats
path: root/sbin/mount
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2002-04-23 17:24:02 +0000
committermux <mux@FreeBSD.org>2002-04-23 17:24:02 +0000
commit02b1cb77f880a8c74b25c434356740f7c49cb67a (patch)
tree45e81b7e9338607849cfdd04958642fca48c5bc8 /sbin/mount
parent1a7fe4db8972593d468f3464f083dab9822212f1 (diff)
downloadFreeBSD-src-02b1cb77f880a8c74b25c434356740f7c49cb67a.zip
FreeBSD-src-02b1cb77f880a8c74b25c434356740f7c49cb67a.tar.gz
Unbreak NFS mounts when mount(8) is invoked as : mount path@server.
Reviewed by: obrien
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 b3ffc3a..ab71799 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 != ':')
OpenPOWER on IntegriCloud