MCPcopy Index your code
hub / github.com/RsyncProject/rsync / want_all_groups

Function want_all_groups

clientserver.c:667–676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

665
666#ifdef HAVE_GETGROUPLIST
667static 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
678static struct passwd *want_all_groups(int f_out, uid_t uid)
679{

Callers 1

rsync_moduleFunction · 0.85

Calls 3

getallgroupsFunction · 0.85
io_printfFunction · 0.85
rsyserrFunction · 0.70

Tested by

no test coverage detected