Ticket #4611 (new defect)

Opened 8 days ago

Last modified 23 hours ago

cd sh:// RemoteCommand fails

Reported by: DirectorBazy Owned by:
Priority: major Milestone: Future Releases
Component: mc-vfs Version: 4.8.32
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

having a host with 'RemoteCommand?' option defined in ~/.ssh/config
e.g.

Host my_remote_host
    HostName my_remote_host.com
    Port 22
    User me_on_remote
    IdentityFile ~/.ssh/id.private
    RemoteCommand sudo su - adm_on_remote
    RequestTTY yes
cd sh://my_remote_host

fails with error

Cannot change directory to /sh://my_remote_host
Input/output error (5)

(mc:72268): GLib-CRITICAL : ... g_string_free: assertion 'string != NULL' failed

If RemoteCommand? is not specified the cd works as expected.
Expecting behavior is that cd works as well if RemoteCommand? is defined as following:

RemoteCommand sudo su - other_user_at_remote_host

See: https://unix.stackexchange.com/questions/354594/remote-command-in-ssh-config-file

Change History

comment:1 Changed 23 hours ago by zaytsev

Patch for glib assertion in Ticket #4572: mc-4572-fix-Glib-g_string_free-assertion.patch .

Note: See TracTickets for help on using tickets.