mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 05:46:03 +00:00
fix(native): the library path given to ld.so holds whole directories only
This commit is contained in:
1 parent
714959fc27
commit
d18fe5c755
1 file changed
+2
@@ -579,6 +579,8 @@ static size_t append_rootfs_lib_dirs_missing_from(char *out, size_t outsz, size_
|
||||
const char *full = rewrite_path_in_root(k_rootfs_lib_dirs[i], buf, sizeof(buf));
|
||||
size_t n = strlen(full);
|
||||
if (have && have[0] != '\0' && lib_dir_list_has(have, full, n)) continue;
|
||||
// whole directories only: a cut-off one would be searched in the wrong place
|
||||
if (used + (separate ? 1 : 0) + n >= outsz) continue;
|
||||
if (separate) used = ddnatv_append(out, outsz, used, ":", 1);
|
||||
separate = 1;
|
||||
used = ddnatv_append(out, outsz, used, full, n);
|
||||
|
||||
Reference in new issue
Block a user