Comment 3 for bug 657489

Revision history for this message
Colin Watson (cjwatson) wrote :

There was one piece of your patch left, namely that to check for "." and "..". It doesn't actually matter because anything we can't fopen later on is ignored (and the same goes for broken symlinks, once we stop segfaulting while trying to sort them), but it makes sense not to bother sorting "." and "..". I've committed a similar patch upstream.

2010-11-24 Colin Watson <email address hidden>

        * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
        effort by skipping "." and ".." entries up-front.
        Suggested by: Michael Lazarev.