Merge pull request #1394 from zhuangel:bindlock

PiperOrigin-RevId: 286051631
This commit is contained in:
gVisor bot 2019-12-17 13:53:16 -08:00
commit 3ab90ecf25
1 changed files with 1 additions and 1 deletions

View File

@ -436,7 +436,7 @@ func overlayRename(ctx context.Context, o *overlayEntry, oldParent *Dirent, rena
}
func overlayBind(ctx context.Context, o *overlayEntry, parent *Dirent, name string, data transport.BoundEndpoint, perm FilePermissions) (*Dirent, error) {
if err := copyUp(ctx, parent); err != nil {
if err := copyUpLockedForRename(ctx, parent); err != nil {
return nil, err
}