bcfbf2
Weaken username regexp restriction. Usernames can include more characters than
bcfbf2
just letters (e.g. _ or [0-9]).
bcfbf2
bcfbf2
Author: Jan Synacek <jsynacek@redhat.com>
bcfbf2
Reported-By: Robert Scheck
bcfbf2
RH-Bugzilla: #894272
bcfbf2
bcfbf2
--- logwatch-svn127-dist/scripts/services/secure	2013-01-11 10:38:15.778804473 +0100
bcfbf2
+++ logwatch-svn127/scripts/services/secure	2013-01-11 10:49:13.381323119 +0100
bcfbf2
@@ -247,7 +247,7 @@ while (defined($ThisLine = <STDIN>)) {
bcfbf2
       ( $ThisLine =~ /userhelper\[\d+\]: running '([^ ]+)' with [^ ]+ context/) or
bcfbf2
       ( $ThisLine =~ /pam_timestamp\(.*:session\): updated timestamp file `\/var\/run\/sudo.*'/) or
bcfbf2
       ( $ThisLine =~ /[^ ]*: pam_keyinit(.*:.*): Unable to change GID to [0-9]* temporarily/) or
bcfbf2
-      ( $ThisLine =~ /password check failed for user \([a-zA-Z]*\)/) or
bcfbf2
+      ( $ThisLine =~ /password check failed for user \(\S*\)/) or
bcfbf2
       ( $ThisLine =~ /PAM pam_set_item: attempt to set conv\(\) to NULL/) or
bcfbf2
       ( $ThisLine =~ /PAM pam_get_item: nowhere to place requested item/) or
bcfbf2
       ( $ThisLine =~ /pam_succeed_if\(.*:.*\): error retrieving information about user [a-zA-Z]*/ ) or