diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-08-18 12:42:44 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-08-18 12:42:44 +0000 |
commit | 2d1bfd524def4379518e09cede0b9fd43d8a66ef (patch) | |
tree | 9a6136cc11e7d53efe514296f6be0e6116f771ba | |
parent | 5a625821622d11060b07fc7a31b9265fa01eed9b (diff) | |
download | newlib-2d1bfd524def4379518e09cede0b9fd43d8a66ef.zip newlib-2d1bfd524def4379518e09cede0b9fd43d8a66ef.tar.gz newlib-2d1bfd524def4379518e09cede0b9fd43d8a66ef.tar.bz2 |
* mkgroup.c (enum_local_groups): Call print_win_error with GetLastError
as argument when LookupAccountXXX failed.
(enum_groups): Ditto.
-rw-r--r-- | winsup/utils/ChangeLog | 6 | ||||
-rw-r--r-- | winsup/utils/mkgroup.c | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 6978f95..7cd59bf 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,5 +1,11 @@ 2008-08-18 Corinna Vinschen <corinna@vinschen.de> + * mkgroup.c (enum_local_groups): Call print_win_error with GetLastError + as argument when LookupAccountXXX failed. + (enum_groups): Ditto. + +2008-08-18 Corinna Vinschen <corinna@vinschen.de> + * mkgroup.c (enum_local_groups): Return failure if looking for a single group succeeded. Add comment. diff --git a/winsup/utils/mkgroup.c b/winsup/utils/mkgroup.c index 3034e45..6854f09 100644 --- a/winsup/utils/mkgroup.c +++ b/winsup/utils/mkgroup.c @@ -388,7 +388,7 @@ enum_local_groups (BOOL domain, domlist_t *dom_or_machine, const char *sep, &sid_length, domain_name, &domname_len, &acc_type)) { - print_win_error (rc); + print_win_error (GetLastError ()); fprintf (stderr, " (%ls)\n", buffer[i].lgrpi0_name); continue; } @@ -406,7 +406,7 @@ enum_local_groups (BOOL domain, domlist_t *dom_or_machine, const char *sep, domain_name, &domname_len, &acc_type)) { - print_win_error (rc); + print_win_error (GetLastError ()); fprintf(stderr, " (%ls)\n", domname); continue; } @@ -538,7 +538,7 @@ enum_groups (BOOL domain, domlist_t *dom_or_machine, const char *sep, domain_name, &domname_len, &acc_type)) { - print_win_error (rc); + print_win_error (GetLastError ()); fprintf(stderr, " (%ls)\n", buffer[i].grpi2_name); continue; } @@ -557,7 +557,7 @@ enum_groups (BOOL domain, domlist_t *dom_or_machine, const char *sep, domain_name, &domname_len, &acc_type)) { - print_win_error (rc); + print_win_error (GetLastError ()); fprintf(stderr, " (%ls)\n", domname); continue; } |