SOURCES: john-mailer.patch (NEW) - polish version

areq areq at pld-linux.org
Sun Feb 12 22:36:15 CET 2006


Author: areq                         Date: Sun Feb 12 21:36:15 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- polish version

---- Files affected:
SOURCES:
   john-mailer.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/john-mailer.patch
diff -u /dev/null SOURCES/john-mailer.patch:1.1
--- /dev/null	Sun Feb 12 22:36:15 2006
+++ SOURCES/john-mailer.patch	Sun Feb 12 22:36:10 2006
@@ -0,0 +1,50 @@
+diff -ruN john-1.6./run/mailer john-1.6/run/mailer
+--- john-1.6./run/mailer	1998-12-03 01:29:50.000000000 +0100
++++ john-1.6/run/mailer	2003-07-12 12:06:43.000000000 +0200
+@@ -10,10 +10,11 @@
+ fi
+ 
+ # There's no need to mail users with these shells
+-SHELLS=-,/bin/false,/dev/null,/bin/sync
++SHELLS=-,/bin/false,/dev/null,/bin/sync,/bin/true,/sbin/shutdown
+ 
+ # Look for John in the same directory with this script
+-DIR="`echo "$0" | sed 's,/[^/]*$,,'`"
++#DIR="`echo "$0" | sed 's,/[^/]*$,,'`"
++DIR="/usr/bin"
+ 
+ # Let's start
+ $DIR/john -show "$1" -shells:$SHELLS | sed -n 's/:.*//p' |
+@@ -21,10 +22,23 @@
+ 	SENT=0
+ 
+ 	while read LOGIN; do
+-		echo Sending mail to "$LOGIN"...
++		echo Sending mail to / Wysylam maila do "$LOGIN"...
+ 
+ # You'll probably want to edit the message below
+-		mail -s 'Bad password' "$LOGIN" << EOF
++		mail -s 'Bad password / Zle haslo' "$LOGIN" << EOF
++--------------------------------------------------------------------------
++[PL]
++
++Witaj!
++
++Twoje hasło dla konta "$LOGIN" nie jest bezpieczne. Proszę zmień
++je tak szybko jak to jest możliwe.
++
++Twój,
++	Robot Sprawdzający Hasła.
++--------------------------------------------------------------------------
++[ENG]
++
+ Hello!
+ 
+ Your password for account "$LOGIN" is insecure. Please change it as soon
+@@ -32,6 +46,7 @@
+ 
+ Yours,
+ 	Password Checking Robot.
++--------------------------------------------------------------------------
+ EOF
+ 
================================================================


More information about the pld-cvs-commit mailing list