File seccheck-2.0-john.patch of Package seccheck.968

Index: security-monthly.sh
===================================================================
--- security-monthly.sh.orig
+++ security-monthly.sh
@@ -40,7 +40,7 @@ echo -e '\nNOTE: have you checked http:/
 
 cat "$OLD1"
 
-if [ -x /usr/sbin/john -a -x /usr/sbin/unshadow ]; then
+if type -p john >/dev/null && type -p unshadow >/dev/null ; then
     echo -e '\nComplete list of user accounts with guessable passwords:'
     unshadow /etc/passwd /etc/shadow > $SEC_VAR/passwd
     john -show "$SEC_VAR/passwd" | sed -n 's/:.*//p'
Index: security-weekly.sh
===================================================================
--- security-weekly.sh.orig
+++ security-weekly.sh
@@ -50,7 +50,7 @@ test -z "$MAILER" && test -x "/usr/lib/s
 test -z "$MAILER" && MAILER="mail"
 
 # password check
-if [ -x /usr/sbin/john -a -x /usr/sbin/unshadow ]; then
+if type -p john >/dev/null && type -p unshadow >/dev/null ; then
     echo > $SEC_VAR/dict
     cat /usr/dict/* /var/lib/john/password.lst 2> /dev/null | sort | uniq >> $SEC_VAR/dict
openSUSE Build Service is sponsored by