Lines Matching refs:dest
81 clone_group(struct group *dest, struct group const *src)
83 ATF_REQUIRE(dest != NULL);
89 memset(dest, 0, sizeof(struct group));
92 dest->gr_name = strdup(src->gr_name);
93 ATF_REQUIRE(dest->gr_name != NULL);
97 dest->gr_passwd = strdup(src->gr_passwd);
98 ATF_REQUIRE(dest->gr_passwd != NULL);
100 dest->gr_gid = src->gr_gid;
107 dest->gr_mem = calloc(members_num + 1, sizeof(char *));
108 ATF_REQUIRE(dest->gr_mem != NULL);
111 dest->gr_mem[cp - src->gr_mem] = strdup(*cp);
112 ATF_REQUIRE(dest->gr_mem[cp - src->gr_mem] != NULL);