[INTERPRETER]

* NEW: When searching a relative path inside an archive, ignore trailing slashes: "foo/bar/" and "/foo/bar//" are now the same as "foo/bar".


git-svn-id: svn://localhost/gambas/trunk@7837 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2016-08-13 14:58:28 +00:00
parent 491f4d0e2f
commit 34df9f3d4c

View File

@ -296,6 +296,9 @@ bool ARCH_find(ARCH *arch, const char *path, int len_path, ARCH_FIND *find)
if (len_path <= 0) if (len_path <= 0)
len_path = strlen(path); len_path = strlen(path);
while (len_path >= 2 && path[len_path - 1] == '/')
len_path--;
if (get_absolute_path(path, len_path, tpath, &len_tpath)) if (get_absolute_path(path, len_path, tpath, &len_tpath))
return TRUE; return TRUE;