X-Git-Url: http://git.tuebingen.mpg.de/?p=adu.git;a=blobdiff_plain;f=user.c;h=ed16463afed9372426c5c08284a65ec863a19e2e;hp=0ae4a6c9af04fe3eab521f38f9c14b74e4f69a8c;hb=6744ce67f91c410f69de0763fb6faa01a8a53b28;hpb=d0f564069d8445e5ffe03c57ff63721f4c47877e diff --git a/user.c b/user.c index 0ae4a6c..ed16463 100644 --- a/user.c +++ b/user.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008 Andre Noll + * Copyright (C) 2008 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -44,7 +44,7 @@ enum uid_info_flags { * * Even users that are not taken into account because of the --uid * option occupy a slot in this hash table. This allows to find out - * quicky whether a uid is admissible. And yes, this has to be fast. + * quickly whether a uid is admissible. And yes, this has to be fast. */ static struct user_info *uid_hash_table; @@ -466,7 +466,7 @@ static char *get_uid_list_name(void) * \a admissible_uids. If so, it sets the admissible bit for this slot and * opens the osl table of the uid. * - * \return Stamdard. + * \return Standard. */ int open_admissible_user_tables(struct uid_range *admissible_uids) { @@ -511,7 +511,7 @@ int read_uid_file(void) size_t size; uint32_t n; char *filename = get_uid_list_name(), *map; - int ret = mmap_full_file(filename, O_RDONLY, (void **)&map, &size, NULL); + int ret = mmap_file_ro(filename, (void **)&map, &size); unsigned bits; if (ret < 0) {