2009-07-31 18:40:04 +00:00
|
|
|
diff -up mc-4.6.99/src/command.c.exit mc-4.6.99/src/command.c
|
|
|
|
--- mc-4.6.99/src/command.c.exit 2009-07-31 19:27:10.000000000 +0200
|
|
|
|
+++ mc-4.6.99/src/command.c 2009-07-31 20:08:01.000000000 +0200
|
|
|
|
@@ -224,6 +224,11 @@ enter (WInput *cmdline)
|
2006-08-15 11:00:45 +00:00
|
|
|
size_t i, j, cmd_len;
|
|
|
|
|
|
|
|
if (!vfs_current_is_local ()) {
|
2009-07-31 18:40:04 +00:00
|
|
|
+ if (strcmp (cmd, "exit") == 0) {
|
|
|
|
+ quiet_quit_cmd ();
|
|
|
|
+ return MSG_HANDLED;
|
|
|
|
+ }
|
2006-08-15 11:00:45 +00:00
|
|
|
+
|
2009-07-31 18:40:04 +00:00
|
|
|
message (D_ERROR, MSG_ERROR,
|
2006-08-15 11:00:45 +00:00
|
|
|
_
|
|
|
|
(" Cannot execute commands on non-local filesystems"));
|