blockdev-util: fix access to possibly invalidated dirent struct
Let's copy out the string we need from the dirent, there's no reason to believe the dirent struct might live for longer than one loop iteration.
Loading
Let's copy out the string we need from the dirent, there's no reason to believe the dirent struct might live for longer than one loop iteration.