Ticket #1680: mc-4.7.0-rh-exit.patch

File mc-4.7.0-rh-exit.patch, 403 bytes (added by wRAR, 15 years ago)
  • mc/src/command.c

    old new enter (WInput *cmdline) 
    224224        size_t i, j, cmd_len; 
    225225 
    226226        if (!vfs_current_is_local ()) { 
     227                if (strcmp (cmd, "exit") == 0) { 
     228                        quiet_quit_cmd (); 
     229                        return MSG_HANDLED; 
     230                } 
     231 
    227232            message (D_ERROR, MSG_ERROR, 
    228233                     _ 
    229234                     (" Cannot execute commands on non-local filesystems"));