mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Merge pull request #1394 from zhuangel:bindlock
PiperOrigin-RevId: 286051631
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user