Merge branch '2805_relative_path_args' into 4.8.1-stable

* 2805_relative_path_args:
  Ticket #2805: fix of misenterpretation of command line arguments as relative paths.
This commit is contained in:
Andrew Borodin 2012-05-09 10:35:43 +04:00
commit 02c743c10a

View File

@ -617,7 +617,10 @@ create_panels (void)
{
vfs_path_t *vpath;
vpath = vfs_path_from_str (other_dir);
if (g_path_is_absolute (other_dir))
vpath = vfs_path_from_str (other_dir);
else
vpath = vfs_path_append_new (original_dir, other_dir, (char *) NULL);
mc_chdir (vpath);
vfs_path_free (vpath);
}
@ -633,7 +636,10 @@ create_panels (void)
{
vfs_path_t *vpath;
vpath = vfs_path_from_str (current_dir);
if (g_path_is_absolute (current_dir))
vpath = vfs_path_from_str (current_dir);
else
vpath = vfs_path_append_new (original_dir, current_dir, (char *) NULL);
mc_chdir (vpath);
vfs_path_free (vpath);
}