https://bugzilla.mindrot.org/show_bug.cgi?id=2999

--- Comment #8 from Darren Tucker <[email protected]> ---
I think I see what happened. sftp's command line parsing does this:

if (parse_user_host_path(*argv, &user, &host,
    &file1) == -1) {
        /* Treat as a plain hostname. */
        host = xstrdup(*argv);
        host = cleanhostname(host);
}

cleanhostname() removes the square brackets by looking at the first and
last characters, but in your example it'll get the username too and so
do nothing.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
[email protected]
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to