mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
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:
commit
02c743c10a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user