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