]> git.tuebingen.mpg.de Git - adu.git/commit
Fix user summary accounting if pattern is given.
authorAndre Noll <maan@systemlinux.org>
Sun, 9 Jun 2013 15:48:36 +0000 (17:48 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 9 Jun 2013 17:47:54 +0000 (19:47 +0200)
commit3a51a868784e755c34f19a16970118936fbf299f
tree1e52896c4293be6ec4d2e283a8a45a00b335ccdd
parent61a9284a7dbcffd2a770135d5f2482ae10459ab9
Fix user summary accounting if pattern is given.

In user summary select mode we iterate over each row in the user
info table and get the directory name from the number stored in the
row. Next we match this name against the given pattern and only take
matching directories into account for the user summary.

Currently we call get_dir_name_of_row(), but this is wrong:
Since we iterate over the user info table, we must call
get_dir_name_of_user_row() instead as the former function expects a
pointer to a dir table row.

This bug caused wrong directory names to be matched against the
pattern, hence the results of the user summary were incorrect.
select.c