proot-me / proot-rs

Rust implementation of PRoot, a ptrace-based sandbox
GNU General Public License v3.0
124 stars 21 forks source link

Trailing slash is removed by proot-rs #41

Closed imlk0 closed 3 years ago

imlk0 commented 3 years ago

proot-rs is currently not aware of the / at the end of the path during path translation. This causes the behavior of ls to be inconsistent with that on host.

inside guestfs:

image in hostfs:

image

This issue and https://github.com/proot-me/proot-rs/issues/40 are both related to handling trailing slash

imlk0 commented 3 years ago

Document the steps to solve this problem:

imlk0 commented 3 years ago

Fixed in commit https://github.com/proot-me/proot-rs/commit/6db9b171963b518759356fda3c3028b4574674e5