mirror of
https://github.com/MidnightCommander/mc
synced 2025-02-07 19:04:25 +03:00
Merge branch '1680_exit_on_non_local_vfs'
* 1680_exit_on_non_local_vfs: Ticket #1680: Allow 'exit' command on non-local filesystems.
This commit is contained in:
commit
fc3f810330
@ -224,6 +224,11 @@ enter (WInput *cmdline)
|
||||
size_t i, j, cmd_len;
|
||||
|
||||
if (!vfs_current_is_local ()) {
|
||||
if (strcmp (cmd, "exit") == 0) {
|
||||
quiet_quit_cmd ();
|
||||
return MSG_HANDLED;
|
||||
}
|
||||
|
||||
message (D_ERROR, MSG_ERROR,
|
||||
_
|
||||
(" Cannot execute commands on non-local filesystems"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user