Lines Matching refs:copy
159 struct passwd *copy = xmalloc(sizeof(*copy)); in pwcopy() local
161 memset(copy, 0, sizeof(*copy)); in pwcopy()
162 copy->pw_name = xstrdup(pw->pw_name); in pwcopy()
163 copy->pw_passwd = xstrdup(pw->pw_passwd); in pwcopy()
164 copy->pw_gecos = xstrdup(pw->pw_gecos); in pwcopy()
165 copy->pw_uid = pw->pw_uid; in pwcopy()
166 copy->pw_gid = pw->pw_gid; in pwcopy()
168 copy->pw_expire = pw->pw_expire; in pwcopy()
171 copy->pw_change = pw->pw_change; in pwcopy()
174 copy->pw_class = xstrdup(pw->pw_class); in pwcopy()
176 copy->pw_dir = xstrdup(pw->pw_dir); in pwcopy()
177 copy->pw_shell = xstrdup(pw->pw_shell); in pwcopy()
178 return copy; in pwcopy()