diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-11-25 19:08:48 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-11-25 19:08:48 +0000 |
commit | d06b2545fac141dafd1bcb88b472c8421e538f29 (patch) | |
tree | 354ddd51b6d0a7ec3089083b032bf026f0b7dba2 /pkg | |
parent | 56d7dc03b7dd9c53d326b62564d4e0b2669d7d85 (diff) | |
parent | 0416c247eca8dfe455b4972b11ef8aab0ea41d0f (diff) |
Merge release-20191114.0-30-g0416c24 (automated)
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/sentry/fs/gofer/inode.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/fs/gofer/inode.go b/pkg/sentry/fs/gofer/inode.go index 4237bf353..91263ebdc 100644 --- a/pkg/sentry/fs/gofer/inode.go +++ b/pkg/sentry/fs/gofer/inode.go @@ -274,7 +274,7 @@ func (i *inodeFileState) recreateReadHandles(ctx context.Context, writer *handle // operations on the old will see the new data. Then, make the new handle take // ownereship of the old FD and mark the old readHandle to not close the FD // when done. - if err := syscall.Dup2(h.Host.FD(), i.readHandles.Host.FD()); err != nil { + if err := syscall.Dup3(h.Host.FD(), i.readHandles.Host.FD(), 0); err != nil { return err } |