aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvorlon <Unknown>2007-08-19 11:20:35 +0000
committervorlon <Unknown>2007-08-19 11:20:35 +0000
commit4363c7f00898ee8574dac8bb3aa9c5338a2c5024 (patch)
treee0d9ee4e745b0d4a62c10ff0a39cbb17a3359286
parentac7b3054b6c56a646e137c7130638f60de23da77 (diff)
downloadpam-4363c7f00898ee8574dac8bb3aa9c5338a2c5024.tar.gz
pam-4363c7f00898ee8574dac8bb3aa9c5338a2c5024.tar.bz2
pam-4363c7f00898ee8574dac8bb3aa9c5338a2c5024.zip
CRACKLIB_DICTPATH is no longer set in configure.in, so patch pam_cracklib.c
instead to use the default dictpath already available from crack.h.
-rw-r--r--changelog5
-rw-r--r--patches-applied/024_debian_cracklib_dict_path35
2 files changed, 16 insertions, 24 deletions
diff --git a/changelog b/changelog
index 9d8e28f0..cd3e244d 100644
--- a/changelog
+++ b/changelog
@@ -21,8 +21,11 @@ pam (0.99.7.1-2) UNRELEASED; urgency=low
messages that were already added upstream; update for the pam_modutil
changes; tighten the flag handling of the 'obscure' option; drop bogus
check in unix_chkpwd for null passwords.
+ * Patch 024: CRACKLIB_DICTPATH is no longer set in configure.in, so patch
+ pam_cracklib.c instead to use the default dictpath already available
+ from crack.h.
- -- Steve Langasek <vorlon@debian.org> Sun, 19 Aug 2007 03:08:57 -0700
+ -- Steve Langasek <vorlon@debian.org> Sun, 19 Aug 2007 04:19:30 -0700
pam (0.79-4) unstable; urgency=medium
diff --git a/patches-applied/024_debian_cracklib_dict_path b/patches-applied/024_debian_cracklib_dict_path
index bfb8fd3c..38af54a7 100644
--- a/patches-applied/024_debian_cracklib_dict_path
+++ b/patches-applied/024_debian_cracklib_dict_path
@@ -1,24 +1,13 @@
-Index: Linux-PAM/configure.in
+Index: Linux-PAM/modules/pam_cracklib/pam_cracklib.c
===================================================================
---- Linux-PAM/configure.in.orig
-+++ Linux-PAM/configure.in
-@@ -271,18 +271,7 @@
- DICT_DIR_CANDIDATES="/usr/lib /usr/share/dict /usr/share/lib \
- /usr/local/lib /usr/local/share/lib /usr/share/cracklib"
- DICT_FILE_CANDIDATES="pw_dict cracklib_dict"
--CRACKLIB_DICTPATH=""
--for d in $DICT_DIR_CANDIDATES ; do
-- for f in $DICT_FILE_CANDIDATES ; do
-- if test -r $d/$f.hwm ; then
-- CRACKLIB_DICTPATH=$d/$f
-- break 2
-- elif test -r $d/dict/$f.hwm ; then
-- CRACKLIB_DICTPATH=$d/dict/$f
-- break 2
-- fi
-- done
--done
-+CRACKLIB_DICTPATH=/var/cache/cracklib/cracklib_dict""
- if test -z "$CRACKLIB_DICTPATH" ; then
- AC_MSG_WARN([none found - pam_cracklib will not be built])
- else
+--- Linux-PAM/modules/pam_cracklib/pam_cracklib.c.orig
++++ Linux-PAM/modules/pam_cracklib/pam_cracklib.c
+@@ -609,7 +609,7 @@
+ const char *crack_msg;
+
+ D(("against cracklib"));
+- if ((crack_msg = FascistCheck(token1,options.cracklib_dictpath[0] == '\0'?NULL:options.cracklib_dictpath))) {
++ if ((crack_msg = FascistCheck(token1,options.cracklib_dictpath[0] == '\0'?CRACKLIB_DICTPATH:options.cracklib_dictpath))) {
+ if (ctrl & PAM_DEBUG_ARG)
+ pam_syslog(pamh,LOG_DEBUG,"bad password: %s",crack_msg);
+ pam_error(pamh, _("BAD PASSWORD: %s"), crack_msg);