Author: Nicholas Bamber <nicho...@periapt.co.uk> Subject: show pwck output Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?512076 Last-Update: 2011-01-08 --- a/scripts/check_passwd +++ b/scripts/check_passwd @@ -55,6 +55,7 @@ # Add /bin/true as valid shell as well as Solaris shells # 05/20/2006 jfs Add quotation marks to Tiger_Admin_Accounts to prevent # errors if empty (Debian bug #342181) +# 08/01/2011 npb Make pwck -r output part of report # #----------------------------------------------------------------------------- # TODO: @@ -317,6 +318,7 @@ pwckerr=`$PWCK 2>&1` if [ -n "$pwckerr" ] ; then message WARN pass006w "" "Integrity of password files questionable ($PWCK)." + echo $pwckerr | $SED -e's/pwck: no changes//' | $SED -e's/ user /|user /g' | $TR "|" "\n" fi }
This issue irritates me. I've had a look at producing a patch. Simply
pinting the output of 'pwck -r' is trivial. The issue
is that the output is all squashed onto one line. The patched code
splits the output again.