container/initsymlink: unwrap absolute error

This is now handled properly by the init.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-08-29 01:43:11 +09:00
parent f24dd4ab8c
commit b8669338da
2 changed files with 2 additions and 4 deletions

View File

@@ -1,7 +1,6 @@
package container
import (
"io/fs"
"os"
"testing"
)
@@ -19,7 +18,7 @@ func TestSymlinkOp(t *testing.T) {
Target: MustAbs("/etc/mtab"),
LinkName: "etc/mtab",
Dereference: true,
}, nil, msg.WrapErr(fs.ErrInvalid, `path "etc/mtab" is not absolute`), nil, nil},
}, nil, &AbsoluteError{"etc/mtab"}, nil, nil},
{"readlink", &Params{ParentPerm: 0755}, &SymlinkOp{
Target: MustAbs("/etc/mtab"),