summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/fdpipe
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-01-26 21:26:00 +0000
committergVisor bot <gvisor-bot@google.com>2021-01-26 21:26:00 +0000
commit7edc1ce12f25e579d7b6f8205f70b823ed050aed (patch)
treedee68721d0c332c0970bfde6ba5456dd934a305c /pkg/sentry/fs/fdpipe
parentfcb89d2d2954a0a1c6d5c6087f1de3af9eff77af (diff)
parentce39f82985b95972c545c941be2133b607b4440c (diff)
Merge release-20210112.0-96-gce39f8298 (automated)
Diffstat (limited to 'pkg/sentry/fs/fdpipe')
-rw-r--r--pkg/sentry/fs/fdpipe/pipe_state.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/sentry/fs/fdpipe/pipe_state.go b/pkg/sentry/fs/fdpipe/pipe_state.go
index af8230a7d..387f713aa 100644
--- a/pkg/sentry/fs/fdpipe/pipe_state.go
+++ b/pkg/sentry/fs/fdpipe/pipe_state.go
@@ -34,7 +34,9 @@ func (p *pipeOperations) beforeSave() {
} else if p.flags.Write {
file, err := p.opener.NonBlockingOpen(context.Background(), fs.PermMask{Write: true})
if err != nil {
- panic(fs.ErrSaveRejection{fmt.Errorf("write-only pipe end cannot be re-opened as %v: %v", p, err)})
+ panic(&fs.ErrSaveRejection{
+ Err: fmt.Errorf("write-only pipe end cannot be re-opened as %#v: %w", p, err),
+ })
}
file.Close()
}