The effect of --bind is not reflected in the result of getdents64(), which can cause some differences in the results of ls -la.
What --bind does is basically overwrite one path on top of another. proot-rs is emulating this behavior, so we need to filter the entries in result of getdents64() to ensure that they do not contain information about entries that under the overwritten. As far as I know original proot also has this problem.
The impact of this issue is not very significant, even a little harsh, so I marked it as an enhancement
The effect of
--bindis not reflected in the result ofgetdents64(), which can cause some differences in the results ofls -la.What
--binddoes is basically overwrite one path on top of another.proot-rsis emulating this behavior, so we need to filter the entries in result ofgetdents64()to ensure that they do not contain information about entries that under the overwritten. As far as I know original proot also has this problem.The impact of this issue is not very significant, even a little harsh, so I marked it as an
enhancement