Lines Matching refs:new_pwd
263 struct passwd new_pwd; in pwd_marshal_func() local
304 memcpy(&new_pwd, pwd, sizeof(struct passwd)); in pwd_marshal_func()
311 if (new_pwd.pw_name != NULL) { in pwd_marshal_func()
312 size = strlen(new_pwd.pw_name); in pwd_marshal_func()
313 memcpy(p, new_pwd.pw_name, size); in pwd_marshal_func()
314 new_pwd.pw_name = p; in pwd_marshal_func()
318 if (new_pwd.pw_passwd != NULL) { in pwd_marshal_func()
319 size = strlen(new_pwd.pw_passwd); in pwd_marshal_func()
320 memcpy(p, new_pwd.pw_passwd, size); in pwd_marshal_func()
321 new_pwd.pw_passwd = p; in pwd_marshal_func()
325 if (new_pwd.pw_class != NULL) { in pwd_marshal_func()
326 size = strlen(new_pwd.pw_class); in pwd_marshal_func()
327 memcpy(p, new_pwd.pw_class, size); in pwd_marshal_func()
328 new_pwd.pw_class = p; in pwd_marshal_func()
332 if (new_pwd.pw_gecos != NULL) { in pwd_marshal_func()
333 size = strlen(new_pwd.pw_gecos); in pwd_marshal_func()
334 memcpy(p, new_pwd.pw_gecos, size); in pwd_marshal_func()
335 new_pwd.pw_gecos = p; in pwd_marshal_func()
339 if (new_pwd.pw_dir != NULL) { in pwd_marshal_func()
340 size = strlen(new_pwd.pw_dir); in pwd_marshal_func()
341 memcpy(p, new_pwd.pw_dir, size); in pwd_marshal_func()
342 new_pwd.pw_dir = p; in pwd_marshal_func()
346 if (new_pwd.pw_shell != NULL) { in pwd_marshal_func()
347 size = strlen(new_pwd.pw_shell); in pwd_marshal_func()
348 memcpy(p, new_pwd.pw_shell, size); in pwd_marshal_func()
349 new_pwd.pw_shell = p; in pwd_marshal_func()
353 memcpy(buffer, &new_pwd, sizeof(struct passwd)); in pwd_marshal_func()