mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
The fd passed to fdopendir will be unusable afterward. Using a duplicate preserves the validity of the original directory fd passed to VisitFiles. Fixes https://github.com/flutter/flutter/issues/43844