mirror of
https://github.com/systemd/systemd
synced 2024-07-21 02:05:05 +00:00
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:
parent
b1ee7474f8
commit
51c425dc93
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue