From 02b1cb77f880a8c74b25c434356740f7c49cb67a Mon Sep 17 00:00:00 2001 From: mux Date: Tue, 23 Apr 2002 17:24:02 +0000 Subject: Unbreak NFS mounts when mount(8) is invoked as : mount path@server. Reviewed by: obrien --- sbin/mount/mount.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sbin/mount') 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 != ':') -- cgit v1.1