Ticket #1867: fish: omit '-l' parameter for userless URLs.
commitcb0d7a36ff5f3e8fe4c45a1911176eb92b8a03c5
authorYury V. Zaytsev <yury@shurup.com>
Fri, 25 Dec 2009 15:03:23 +0000 (25 16:03 +0100)
committerAndrew Borodin <aborodin@vmail.ru>
Fri, 25 Dec 2009 15:57:27 +0000 (25 18:57 +0300)
tree9672a85ee8310a1181bb209c8534e5c69e603250
parent8abe72112a1cfc22cb0aa9e36642a800f79c0f9c
Ticket #1867: fish: omit '-l' parameter for userless URLs.

Add the user name to the ssh command line only if it's not the same as
the local logged-in user. OpenSSH will take it as a default value
anyway, but otherwise we'll override ~/.ssh/config settings which might
be not what the user wants.

* Factored out vfs_get_local_username()
* Moved default-user detection to fish subsystem (URL_USE_ANONYMOUS)
* Slight modifications to the comments and wording
vfs/fish.c
vfs/ftpfs.c
vfs/utilvfs.c
vfs/utilvfs.h