summaryrefslogtreecommitdiffstats
path: root/src/firstboot
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2023-07-06 10:00:00 +0200
committerDmitry V. Levin <ldv@strace.io>2023-07-06 12:59:41 +0200
commitbc0ef0e2c0a116731f8535802ca0d077212e3c1f (patch)
tree6e3a3cceefd457e5e1480c1266a160765d723096 /src/firstboot
parentpwquality: do not log password suggestions (diff)
downloadsystemd-bc0ef0e2c0a116731f8535802ca0d077212e3c1f.tar.xz
systemd-bc0ef0e2c0a116731f8535802ca0d077212e3c1f.zip
pwquality: add old password argument to quality_check_password
This would allow to use quality_check_password() in user_record_quality_check_password() which still uses sym_pwquality_check() directly.
Diffstat (limited to 'src/firstboot')
-rw-r--r--src/firstboot/firstboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firstboot/firstboot.c b/src/firstboot/firstboot.c
index 019b7d70af..501f074c94 100644
--- a/src/firstboot/firstboot.c
+++ b/src/firstboot/firstboot.c
@@ -790,7 +790,7 @@ static int prompt_root_password(int rfd) {
break;
}
- r = quality_check_password(*a, "root", &error);
+ r = quality_check_password(*a, /* old */ NULL, "root", &error);
if (r < 0) {
if (ERRNO_IS_NOT_SUPPORTED(r))
log_warning("Password quality check is not supported, proceeding anyway.");