diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2020-09-09 12:05:43 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2020-09-09 12:05:43 +0300 |
commit | 46841cad4db6c7bd016a69999a5aa6298a05ad0f (patch) | |
tree | 8fe2b1aa97c828bac552e78c99dda564ba72694e /internal/serving/disk | |
parent | 00d1ddcc89a9a79dcd8008302bba6d1a927bb6ca (diff) |
Fix handling of absolute paths for `vfs/local`fix-symlink-specs
This resolves absolute paths to be relative
if within a `rootPath` or absolute if outside.
The `EvalSymlink` and the later usage of `VFS`
will ensure that path is sanitised
Diffstat (limited to 'internal/serving/disk')
-rw-r--r-- | internal/serving/disk/symlink/path_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/serving/disk/symlink/path_test.go b/internal/serving/disk/symlink/path_test.go index c802a410..23978037 100644 --- a/internal/serving/disk/symlink/path_test.go +++ b/internal/serving/disk/symlink/path_test.go @@ -74,7 +74,7 @@ var EvalSymlinksTests = []EvalSymlinksTest{ {"test/link2/..", "test"}, {"test/dir/link3", "."}, {"test/link2/link3/test", "test"}, - {"test/linkabs", "."}, + {"test/linkabs", "/"}, {"test/link4/..", "test"}, {"src/versions/current/modules/test", "src/pool/test"}, } |