The day after installing the latest snapshot I got the usual
/usr/libexec/security email - but it appeared to be double spaced for
the setuid/device changes sections.  It is actually just trailing
spaces on each line, which made them wrap on an 80 column terminal.

This gets rid of them (and reduces the initial email by over 7KB):

Index: security
===================================================================
RCS file: /cvs/src/libexec/security/security,v
retrieving revision 1.15
diff -u -p -r1.15 security
--- security    20 Jun 2011 21:53:53 -0000      1.15
+++ security    18 Jul 2011 07:11:20 -0000
@@ -45,6 +45,7 @@ sub nag ($$) {
                        print "\n$check_title\n";
                        undef $check_title;
                }
+               $msg =~ s/\s+$//;
                print "$msg\n";
                $return_code = 1;
        }

Someone more willing to muck with perl may want to fix the
'adjust_columns' routine where the spaces get injected.

Daniel

Reply via email to