/[smecontribs]/rpms/smeserver-affa/contribs10/smeserver-affa-fix-reporting-error-3.patch
ViewVC logotype

Contents of /rpms/smeserver-affa/contribs10/smeserver-affa-fix-reporting-error-3.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Jul 5 13:16:33 2022 UTC (23 months, 3 weeks ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-affa-3_3_1-11_el7_sme
* Tue Jul 05 2022 John Crisp <jcrisp@safeandsoundit.co.uk> 3.3.1-11
- Update Regex to help clean out rsyncd.motd messages [SME: 12084]

1 diff -ruN smeserver-affa-3.3.1.old/root/sbin/affa smeserver-affa-3.3.1/root/sbin/affa
2 --- smeserver-affa-3.3.1.old/root/sbin/affa 2022-07-05 14:05:16.469545774 +0100
3 +++ smeserver-affa-3.3.1/root/sbin/affa 2022-07-05 14:06:36.852881518 +0100
4 @@ -727,7 +727,7 @@
5 $rpt->newval( 'Report', 'Date', Date::Format::time2str( "%Y%m%d%H%M", time() ) );
6 $rpt->newval( 'Report', 'ExecutionTime', time() - $StartTime );
7 foreach my $s ( split( /[\r\n]/, $rsyncOutput ) ) {
8 - next if ( $s =~ /(^rsync)|(^sent)|(^total size is)|(^File list)/ );
9 + next if ( $s =~ /(^rsync)|(^sent)|(^total size is)|(^File list)|(^[^:]*$)/ );
10 my @p = split( /:/, $s );
11 ( my $key = $p[0] ) =~ s/\b(\w)/\U$1/g; # first char uppercase
12 $key =~ s/ //g;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed