* mkgroup.c (enum_local_groups): Return failure if looking for a single

group succeeded.  Add comment.
This commit is contained in:
Corinna Vinschen 2008-08-18 08:58:21 +00:00
parent 096df1774b
commit 5a62582162
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-08-18 Corinna Vinschen <corinna@vinschen.de>
* mkgroup.c (enum_local_groups): Return failure if looking for a single
group succeeded. Add comment.
2008-08-18 Corinna Vinschen <corinna@vinschen.de>
* mkgroup.c (main): Keep correctly track of optional arguments.

View File

@ -454,7 +454,10 @@ skip_group:
}
while (rc == ERROR_MORE_DATA);
return 0;
/* Return -1 if the single group we're looking for has been found here to
avoid calling enum_groups for the same group, thus avoiding a spurious
error message "group name could not be found" in enum_groups. */
return disp_groupname && entriesread ? -1 : 0;
}
static void