diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-14 02:10:48 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-14 02:10:48 +0900 |
| commit | e94b09d3372d9034c0da2142adb6293d2f6162eb (patch) | |
| tree | 75a5518267dec7e34e9e7c38e70fcb92e33acc44 /internal | |
| parent | 5d9e669d97ee53e3b6d4478d315319b59d5b402b (diff) | |
sandbox/mount: fix source flag path
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/sandbox/mount.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/sandbox/mount.go b/internal/sandbox/mount.go index 3d3d63af..ea781d60 100644 --- a/internal/sandbox/mount.go +++ b/internal/sandbox/mount.go @@ -41,6 +41,8 @@ func bindMount(src, dest string, flags int) error { } else if flags&BindOptional != 0 { return fmsg.WrapError(syscall.EINVAL, "flag source excludes optional") + } else { + source = toHost(src) } if fi, err := os.Stat(source); err != nil { |
