Package: cracklib-runtime
Version: 2.7-19

update-cracklib runs daily... and writes a new dictionary even if there's 
been no change to its input sources.  if you have several wordlists 
installed this can take some time and cause extra churn for backups...

please consider the patch below...

thanks
-dean

--- /usr/sbin/update-cracklib.orig      2006-06-10 09:03:50.000000000 -0700
+++ /usr/sbin/update-cracklib   2006-07-30 13:14:26.000000000 -0700
@@ -22,7 +22,14 @@
 
 if [ -n "${cracklib_dictpath_src}"  -a  -n "${cracklib_dictpath}" ]
 then
-    /usr/sbin/crack_mkdict ${cracklib_dictpath_src} | /usr/sbin/crack_packer 
${cracklib_dictpath}
+    for i in ${cracklib_dictpath_src}
+    do
+       if [ "$i" -nt "${cracklib_dictpath}.pwd" ]
+       then
+           /usr/sbin/crack_mkdict ${cracklib_dictpath_src} | 
/usr/sbin/crack_packer ${cracklib_dictpath}
+           exit 0
+       fi
+    done
 fi
 
 exit 0


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to