]> git.tuebingen.mpg.de Git - adu.git/commit
Inplement the --uid option.
authorAndre Noll <maan@systemlinux.org>
Fri, 30 May 2008 13:25:23 +0000 (15:25 +0200)
committerAndre Noll <maan@systemlinux.org>
Fri, 30 May 2008 13:25:23 +0000 (15:25 +0200)
commit5738935ef1e34d1a82e9b4fcdb741f2b06667b96
tree09bf6f342b2a0d79e1cdc3fc5df4b11adc6fb452
parentb6373437d6c2dfca295f6ada1647fe6305bb9ee7
Inplement the --uid option.

This adds a parser for the --uid argument that fills in the array
of admissible intervals.

In select mode the tables for non-admissible uids are no longer opened.

Therefore we can no longer use the ->table pointer of struct user_info
to find out whether a slot in the hash table is already used. Introduce
the new field ->flags to struct user_info that contains a bit indicating
whether the slot in the hash table is used and another bit that tells
us whether the uid associated with that slot is admissible.
adu.c