diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-04-17 02:31:16 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-04-17 02:31:16 +0000 |
commit | 6cb5f4c66f69a8beee5aa2d45221b29d162e38f8 (patch) | |
tree | 52ded5cfd512b343da71cbe36d84b069615310e6 /pkg/sentry/vfs/vfs.go | |
parent | b8b74303af86a1ef078cb72709c1cf66a37f8c5d (diff) | |
parent | f03996c5e9803934226e4b3a10827501cb936ab9 (diff) |
Merge release-20200323.0-173-gf03996c (automated)
Diffstat (limited to 'pkg/sentry/vfs/vfs.go')
-rwxr-xr-x | pkg/sentry/vfs/vfs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/vfs/vfs.go b/pkg/sentry/vfs/vfs.go index 053c6e1d1..cb5bbd781 100755 --- a/pkg/sentry/vfs/vfs.go +++ b/pkg/sentry/vfs/vfs.go @@ -335,7 +335,7 @@ func (vfs *VirtualFilesystem) MknodAt(ctx context.Context, creds *auth.Credentia rp := vfs.getResolvingPath(creds, pop) for { err := rp.mount.fs.impl.MknodAt(ctx, rp, *opts) - if err != nil { + if err == nil { vfs.putResolvingPath(rp) return nil } |