]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pwquality: remove old built-in cracklib dictionary workaround
authorDmitry V. Levin <ldv@strace.io>
Tue, 27 Jun 2023 21:00:00 +0000 (21:00 +0000)
committerLennart Poettering <lennart@poettering.net>
Wed, 28 Jun 2023 13:56:38 +0000 (15:56 +0200)
The first version of libpwquality with the required change was 1.4.1
released in 2019.

meson.build
src/shared/pwquality-util.c

index 9f355bf5695918a9d4abc37997351af58e0d8e62..e6ea55c0d9f4e022abb23d477b6ce4bc33742b56 100644 (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
index 12efe626081e86b8ac8315e51bef9dc2503184d7..839cf4caf997d91a5382236987e7c968b040842a 100644 (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;