diff --git a/sshfs.c b/sshfs.c index 4cdf1223..627fcfea 100644 --- a/sshfs.c +++ b/sshfs.c @@ -4215,6 +4215,10 @@ static char *find_base_path(void) } *d++ = *s; } + if (s[1] != ':') { + fprintf(stderr, "missing ':' after hostname\n"); + exit(1); + } } else { *d++ = *s; }