Lines Matching defs:copy
205 struct passwd *copy = xcalloc(1, sizeof(*copy));
207 copy->pw_name = xstrdup(pw->pw_name);
208 copy->pw_passwd = pw->pw_passwd ? xstrdup(pw->pw_passwd) : NULL;
210 copy->pw_gecos = xstrdup(pw->pw_gecos);
212 copy->pw_uid = pw->pw_uid;
213 copy->pw_gid = pw->pw_gid;
215 copy->pw_expire = pw->pw_expire;
218 copy->pw_change = pw->pw_change;
221 copy->pw_class = xstrdup(pw->pw_class);
223 copy->pw_dir = xstrdup(pw->pw_dir);
224 copy->pw_shell = xstrdup(pw->pw_shell);
225 return copy;