mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Merge pull request #5983 from btw616:fix/issue-5982
PiperOrigin-RevId: 373661350
This commit is contained in:
@@ -1247,6 +1247,7 @@ func (l *localFile) MultiGetAttr(names []string) ([]p9.FullStat, error) {
|
||||
if parent != l.file.FD() {
|
||||
// Parent is no longer needed.
|
||||
_ = unix.Close(parent)
|
||||
parent = -1
|
||||
}
|
||||
if err != nil {
|
||||
if errors.Is(err, unix.ENOENT) {
|
||||
@@ -1275,5 +1276,8 @@ func (l *localFile) MultiGetAttr(names []string) ([]p9.FullStat, error) {
|
||||
}
|
||||
parent = child
|
||||
}
|
||||
if parent != -1 && parent != l.file.FD() {
|
||||
_ = unix.Close(parent)
|
||||
}
|
||||
return stats, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user