2009-05-27 05:49:13 +00:00
|
|
|
diff -up mc-4.6.2/src/main.c.newlinedir mc-4.6.2/src/main.c
|
|
|
|
--- mc-4.6.2/src/main.c.newlinedir 2009-05-26 15:55:43.000000000 +0200
|
|
|
|
+++ mc-4.6.2/src/main.c 2009-05-26 15:56:47.000000000 +0200
|
|
|
|
@@ -640,7 +640,7 @@ _do_panel_cd (WPanel *panel, const char
|
2006-11-20 14:08:49 +00:00
|
|
|
directory = *new_dir ? new_dir : home_dir;
|
|
|
|
|
2009-05-27 05:49:13 +00:00
|
|
|
ret_panel=panel;
|
2006-11-20 14:08:49 +00:00
|
|
|
- if (mc_chdir (directory) == -1) {
|
|
|
|
+ if (strchr(directory,'\n') || mc_chdir (directory) == -1) {
|
|
|
|
strcpy (panel->cwd, olddir);
|
|
|
|
g_free (olddir);
|
|
|
|
g_free (translated_url);
|