summaryrefslogtreecommitdiff
path: root/security/logcheck/files/patch-src_logtail2
blob: bb18b85904a0cd863c26ab2045d66fe4a22090cd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/logtail2.orig	2017-07-11 17:32:13 UTC
+++ src/logtail2
@@ -109,7 +109,7 @@ sub determine_rotated_logfile {
     # function with dateext magic added.
 
     #print "determine_rotated_logfile $filename $inode\n";
-    for my $codefile (glob("/usr/share/logtail/detectrotate/*.dtr")) {
+    for my $codefile (glob("%%DATADIR%%/detectrotate/*.dtr")) {
         my $func = do $codefile;
         if (!$func) {
 	    print STDERR "cannot compile $codefile: $!";