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 <cjwat...@ubuntu.com> * util/deviceiter.c (grub_util_iterate_devices): Save a bit of effort by skipping "." and ".." entries up-front. Suggested by: Michael Lazarev. -- grub package update may crash when used with PnP wireless modems https://bugs.launchpad.net/bugs/657489 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs