You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// - Relative paths: this feature (currently) does not apply mappings to relative paths, e.g.
/// `../dev`.
In most fs hooks, the three macros check_relative_paths!, remap_path! and ensure_not_ignored! should be called, so we should maybe just have a macro/function that calls them all in the right order.
The text was updated successfully, but these errors were encountered:
For example in
read_link
(and in some other hooks)mirrord/mirrord/layer/src/file/ops.rs
Lines 333 to 336 in fd9ef90
We first remap the path, then we check if the mapped path is relative. However in
open
(and some other hooks):mirrord/mirrord/layer/src/file/ops.rs
Lines 205 to 210 in fd9ef90
If it's a relative path, we bypass before mapping the path.
We should make sure all detours have the same mapping logic.
The docs match the second case (ignore relative before mapping), so I assume this is the correct behaviour.
mirrord/mirrord/config/src/feature/fs/advanced.rs
Lines 135 to 136 in fd9ef90
In most fs hooks, the three macros
check_relative_paths!
,remap_path!
andensure_not_ignored!
should be called, so we should maybe just have a macro/function that calls them all in the right order.The text was updated successfully, but these errors were encountered: