mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 05:16:01 +00:00
fix(native): keep the visible name of link2symlink binaries
This commit is contained in:
1 parent
70c33fc039
commit
ea9e38f6bb
1 file changed
+4
@@ -37,6 +37,10 @@ static void resolve_symlinks(const char *path, char *out, size_t out_size, int d
|
||||
ddnatv_copy_cstr(next_path, sizeof(next_path), link_target);
|
||||
}
|
||||
}
|
||||
// proot's link2symlink leaves hard links as ".l2s.*" files that programs must not see by name
|
||||
const char *next_base = strrchr(next_path, '/');
|
||||
next_base = next_base ? next_base + 1 : next_path;
|
||||
if (strncmp(next_base, ".l2s.", 5) == 0) return;
|
||||
resolve_symlinks(next_path, out, out_size, depth + 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user