aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/initsymlink.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-11 04:22:04 +0900
committerOphestra <cat@gensokyo.uk>2026-01-11 04:23:55 +0900
commite1e46504a1939aff927ae47508b0523a7305fb18 (patch)
tree94f3e9871ac139d701915c2b7517e823701c60ff /container/initsymlink.go
parentec9343ebd625cc97a0dd8b09f030f84b142b7ca4 (diff)
container/check: return error backed by string type
The struct turned out not necessary during initial implementation but was not unwrapped into its single string field. This change replaces it with the underlying string and removes the indirection. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/initsymlink.go')
-rw-r--r--container/initsymlink.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/container/initsymlink.go b/container/initsymlink.go
index be0ce2a2..df0ddc11 100644
--- a/container/initsymlink.go
+++ b/container/initsymlink.go
@@ -31,7 +31,7 @@ func (l *SymlinkOp) Valid() bool { return l != nil && l.Target != nil && l.LinkN
func (l *SymlinkOp) early(_ *setupState, k syscallDispatcher) error {
if l.Dereference {
if !path.IsAbs(l.LinkName) {
- return &check.AbsoluteError{Pathname: l.LinkName}
+ return check.AbsoluteError(l.LinkName)
}
if name, err := k.readlink(l.LinkName); err != nil {
return err