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:
Andreas Mohr 2017-03-03 15:20:17 +02:00 committed by Mooffie
parent 161e3a1719
commit c9f058e65b

View File

@ -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;