Lines Matching refs:shadow
521 _cleanup_fclose_ FILE *original = NULL, *shadow = NULL; in write_temporary_shadow() local
536 r = fopen_temporary_label("/etc/shadow", shadow_path, &shadow, &shadow_tmp); in write_temporary_shadow()
545 r = copy_rights_with_fallback(fileno(original), fileno(shadow), shadow_tmp); in write_temporary_shadow()
566 r = putspent_sane(sp, shadow); in write_temporary_shadow()
578 if (fchmod(fileno(shadow), 0000) < 0) in write_temporary_shadow()
626 r = putspent_sane(&n, shadow); in write_temporary_shadow()
634 r = putspent_sane(sp, shadow); in write_temporary_shadow()
648 r = fflush_sync_and_check(shadow); in write_temporary_shadow()
652 *tmpfile = TAKE_PTR(shadow); in write_temporary_shadow()
845 _cleanup_fclose_ FILE *passwd = NULL, *group = NULL, *shadow = NULL, *gshadow = NULL; in write_files() local
867 r = write_temporary_shadow(shadow_path, &shadow, &shadow_tmp); in write_files()
888 if (shadow) { in write_files()
925 if (shadow) { in write_files()