Searched refs:passwd_path (Results 1 – 2 of 2) sorted by relevance
/systemd-251/src/sysusers/ |
D | sysusers.c | 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() [all …]
|
/systemd-251/src/firstboot/ |
D | firstboot.c | 727 static int write_root_passwd(const char *passwd_path, const char *password, const char *shell) { in write_root_passwd() argument 734 r = fopen_temporary_label("/etc/passwd", passwd_path, &passwd, &passwd_tmp); in write_root_passwd() 738 original = fopen(passwd_path, "re"); in write_root_passwd() 788 r = rename_and_apply_smack_floor_label(passwd_tmp, passwd_path); in write_root_passwd()
|