/[smeserver]/rpms/smeserver-audittools/sme10/smeserver-audittools-1.6.0-bz11674-bz11673.patch
ViewVC logotype

Annotation of /rpms/smeserver-audittools/sme10/smeserver-audittools-1.6.0-bz11674-bz11673.patch

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


Revision 1.1 - (hide annotations) (download)
Mon Aug 23 04:13:21 2021 UTC (3 years, 2 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-audittools-1_6_0-3_el7_sme, smeserver-audittools-1_6_0-4_el7_sme, HEAD
* Mon Aug 23 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.6.0-3.sme
- fix temp event displayed by events audittool [SME: 11674]
- fix links to different rpm rported as modified [SME: 11673]

1 jpp 1.1 diff -Nur --no-dereference smeserver-audittools-1.6.0.old/root/sbin/e-smith/audittools/events smeserver-audittools-1.6.0/root/sbin/e-smith/audittools/events
2     --- smeserver-audittools-1.6.0.old/root/sbin/e-smith/audittools/events 2008-10-07 11:46:19.000000000 -0400
3     +++ smeserver-audittools-1.6.0/root/sbin/e-smith/audittools/events 2021-08-23 00:06:45.725000000 -0400
4     @@ -45,6 +45,8 @@
5    
6     return if ( $status eq "OWNED_BY_RPM");
7    
8     + return if ( $File::Find::name =~ /^\/etc\/e-smith\/events\/temp/);
9     +
10     print "$File::Find::name: $status\n";
11     }
12    
13     @@ -61,7 +63,7 @@
14    
15     my $install_time = $rpms[0]->tag("INSTALLTIME");
16    
17     - my $st = stat($options{name}) or die "Couldn't stat $options{name}: $!";
18     + my $st = lstat($options{name}) or die "Couldn't stat $options{name}: $!";
19    
20     return "MODIFIED " . $rpms[0]->as_nvre if ($st->mtime > $install_time);
21    

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