X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=select.c;h=e0009927d188359c76a78116b7bb6148cd186f6d;hb=b6858a167ec80f23a07115fb3c8389a401861822;hp=df68b67073bf41116859eaac633a2c5d0a835396;hpb=61a9284a7dbcffd2a770135d5f2482ae10459ab9;p=adu.git diff --git a/select.c b/select.c index df68b67..e000992 100644 --- a/select.c +++ b/select.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. */ @@ -19,6 +19,7 @@ #include "error.h" #include "user.h" #include "select.cmdline.h" +#include "select.h" /** \cond */ /* global list */ @@ -436,6 +437,7 @@ static int print_global_summary(struct format_info *fi) return output("%s", select_conf.trailer_arg); } +/* row: a pointer to a row of the *user* table */ static int user_summary_loop_function(struct osl_row *row, void *data) { struct user_summary_info *usi = data; @@ -444,7 +446,7 @@ static int user_summary_loop_function(struct osl_row *row, void *data) if (usi->preg) { char *dirname; - ret = get_dir_name_of_row(row, &dirname); + ret = get_dir_name_of_user_row(row, usi->ui, &dirname); if (ret < 0) goto err; ret = dir_is_admissible(dirname, usi->preg, usi->inverse_matching);