mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-02 10:23:25 +08:00
dir_list() accepted a name matching dirname exactly, so opendir() of a file's path succeeded, and readdir() then skipped past the end of that file's name, taking the name from whatever followed it in memory. Over MAVFTP, listing a path such as @ROMFS/locations.txt was enough. Match only names with a separator after dirname.