* Brian May <b...@debian.org> [2018-11-30 15:11 +1100]:

> Elimar Riesebieter <riese...@lxtec.de> writes:
> 
> > Here we go:
> >
> > root@toy>pts/4 /etc/spamassassin/sa-update-hooks.d # ./amavisd-new 
> > Unescaped left brace in regex is deprecated here (and will be fatal in Perl 
> > 5.32), passed through in regex; marked by <-- HERE in m/ ( { <-- HERE } (?: 
> > / \* )? | \* ) / at (eval 109) line 830.
> > root@toy>pts/4 /etc/spamassassin/sa-update-hooks.d # 
> >
> > Get the same result as user amavis
> 
> Ok, thanks. Unfortunately I just cannot
> reproduce this error:
> 
> (buster-amd64-default)root@silverfish:/etc/spamassassin/sa-update-hooks.d# 
> ./amavisd-new 
> (buster-amd64-default)root@silverfish:/etc/spamassassin/sa-update-hooks.d# 
> 
> (similar results on a sid chroot)
> 
> Is it possible this is a problem with your config files or something?

The attached patch fixed it for me. The patch is done before debian
patches the source! Harald pointed me to the right place ;)

Elimar
-- 
  The path to source is always uphill!
                                -unknown-
From c781008678fc330fd5ae8caab1c5aa986bafe298 Mon Sep 17 00:00:00 2001
From: Elimar Riesebieter <riese...@lxtec.de>
Date: Fri, 14 Dec 2018 13:04:46 +0100
Subject: [PATCH] Fix an unescaped brace in amavisd

---
 amavisd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/amavisd b/amavisd
index 7f93194..70a8a28 100755
--- a/amavisd
+++ b/amavisd
@@ -28848,7 +28848,7 @@ sub run_av(@) {
         my $f = $bare_fnames->[$k];  my $multi = 0;
         if ($one_at_a_time) {  # glob templates may be substrings anywhere
           local($1);  @query_expanded = @query_template;  # start afresh
-          s{ ( {} (?: / \* )? | \* ) }
+          s{ ( \{\} (?: / \* )? | \* ) }
            { $1 eq '{}'   ? "$tempdir/parts"
            : $1 eq '{}/*' ? ($multi=1,"$tempdir/parts/$f")
            : $1 eq '*'    ? ($multi=1,$f)  : $1
-- 
2.20.0

Attachment: signature.asc
Description: PGP signature

Reply via email to