mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Ticket #2942: External panelize: opening a file with an absolute path fails.
We fix the detection of absolute paths in the panel's list. `list[0]` is "..", so we need to inspect `list[1]`. Signed-off-by: Mooffie <mooffie@gmail.com>
This commit is contained in:
parent
161e3a1719
commit
c9f058e65b
@ -358,7 +358,7 @@ do_external_panelize (char *command)
|
||||
|
||||
if (list->len == 0)
|
||||
dir_list_init (list);
|
||||
else if (IS_PATH_SEP (list->list[0].fname[0]))
|
||||
else if (list->len > 1 && IS_PATH_SEP (list->list[1].fname[0]))
|
||||
{
|
||||
vfs_path_t *vpath_root;
|
||||
int ret;
|
||||
|
Loading…
Reference in New Issue
Block a user