Fix B-tree search in BFS, especially in presence of non-ASCII

characters.

	* grub-core/fs/bfs.c (bfs_strcmp): New function.
	(find_in_b_tree): Use standard bsearch + btree algorithm.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-05-03 20:29:10 +02:00
parent 5700603549
commit aa01499d05
2 changed files with 70 additions and 13 deletions

View file

@ -1,3 +1,11 @@
2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
Fix B-tree search in BFS, especially in presence of non-ASCII
characters.
* grub-core/fs/bfs.c (bfs_strcmp): New function.
(find_in_b_tree): Use standard bsearch + btree algorithm.
2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes