]> git.tuebingen.mpg.de Git - adu.git/commit
Fix sorting of the uid hash table.
authorAndre Noll <maan@systemlinux.org>
Sun, 9 Nov 2008 14:33:16 +0000 (15:33 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 9 Nov 2008 14:33:16 +0000 (15:33 +0100)
commit097617e14184af884c2839dd9b82c26aee5d7316
tree6b213677087d4c793a55120a668ad13c1b685d8b
parentd5d8bd8399bd7f3b90a39faa43412db2b54b7616
Fix sorting of the uid hash table.

We must not blindy sort the whole table because in interactive mode
this table may be modified by later commands and lookup_uid() gets
confused if the entries have been permuted. So introduce
uid_hash_table_sort_idx, an array of indices that describes the current
sorting of the hash table. The order of the entries in the table itsself
never gets changed any more with this patch.

Also, simplify the uid comparators by introducing a wrapper that does
the casts which were previously contained in each comparator.
select.c
user.c
user.h