pwquality: remove old built-in cracklib dictionary workaround

The first version of libpwquality with the required change was 1.4.1
released in 2019.
This commit is contained in:
Dmitry V. Levin 2023-06-27 21:00:00 +00:00 committed by Lennart Poettering
parent b1ee7474f8
commit 51c425dc93
2 changed files with 3 additions and 5 deletions

View file

@ -1196,7 +1196,9 @@ conf.set10('HAVE_LIBFDISK', have)
want_pwquality = get_option('pwquality')
if want_pwquality != 'false' and not skip_deps
libpwquality = dependency('pwquality', required : want_pwquality == 'true')
libpwquality = dependency('pwquality',
version : '>= 1.4.1',
required : want_pwquality == 'true')
have = libpwquality.found()
else
have = false

View file

@ -50,10 +50,6 @@ void pwq_maybe_disable_dictionary(pwquality_settings_t *pwq) {
return;
}
// REMOVE THIS AS SOON AS https://github.com/libpwquality/libpwquality/pull/21 IS MERGED AND RELEASED
if (isempty(path))
path = "/usr/share/cracklib/pw_dict.pwd.gz";
if (isempty(path)) {
log_debug("Weird, no dictionary file configured, ignoring.");
return;