Lines Matching refs:passwd_path

155         const char *passwd_path;  in load_user_database()  local
159 passwd_path = prefix_roota(arg_root, "/etc/passwd"); in load_user_database()
160 f = fopen(passwd_path, "re"); in load_user_database()
397 static int write_temporary_passwd(const char *passwd_path, FILE **tmpfile, char **tmpfile_path) { in write_temporary_passwd() argument
412 r = fopen_temporary_label("/etc/passwd", passwd_path, &passwd, &passwd_tmp); in write_temporary_passwd()
414 return log_debug_errno(r, "Failed to open temporary copy of %s: %m", passwd_path); in write_temporary_passwd()
416 original = fopen(passwd_path, "re"); in write_temporary_passwd()
426 passwd_path, passwd_tmp); in write_temporary_passwd()
433 passwd_path, pw->pw_name); in write_temporary_passwd()
438 passwd_path, pw->pw_uid); in write_temporary_passwd()
450 return log_debug_errno(r, "Failed to read %s: %m", passwd_path); in write_temporary_passwd()
454 return log_debug_errno(errno, "Failed to open %s: %m", passwd_path); in write_temporary_passwd()
505 return log_debug_errno(r, "Failed to read %s: %m", passwd_path); in write_temporary_passwd()
847 const char *passwd_path, *shadow_path, *group_path, *gshadow_path; in write_files() local
850 passwd_path = prefix_roota(arg_root, "/etc/passwd"); in write_files()
863 r = write_temporary_passwd(passwd_path, &passwd, &passwd_tmp); in write_files()
884 r = make_backup("/etc/passwd", passwd_path); in write_files()
886 return log_debug_errno(r, "Failed to make backup %s: %m", passwd_path); in write_files()
915 r = rename_and_apply_smack_floor_label(passwd_tmp, passwd_path); in write_files()
918 passwd_tmp, passwd_path); in write_files()