| 665 | |
| 666 | #ifdef HAVE_GETGROUPLIST |
| 667 | static int want_all_groups(int f_out, uid_t uid) |
| 668 | { |
| 669 | const char *err; |
| 670 | if ((err = getallgroups(uid, &gid_list)) != NULL) { |
| 671 | rsyserr(FLOG, errno, "%s", err); |
| 672 | io_printf(f_out, "@ERROR: %s\n", err); |
| 673 | return -1; |
| 674 | } |
| 675 | return 0; |
| 676 | } |
| 677 | #elif defined HAVE_INITGROUPS |
| 678 | static struct passwd *want_all_groups(int f_out, uid_t uid) |
| 679 | { |
no test coverage detected