Your message dated Thu, 01 Dec 2016 21:04:25 +0000
with message-id <e1ccywn-0004pt...@fasolo.debian.org>
and subject line Bug#820110: fixed in backuppc 3.3.1-4
has caused the Debian Bug report #820110,
regarding backuppc: Lib.pm: Unescaped left brace in regex is deprecated
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
820110: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=820110
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: backuppc
Version: 3.3.1-2
Severity: normal
Tags: patch

As of Perl 5.22.0 in some cases curly brackets needs to be escaped.

More info here:

  http://perldoc.perl.org/perlre.html#Quantifiers

  "If a curly bracket occurs in any other context and does not form
  part of a backslashed sequence like \x{...} , it is treated as a
  regular character. However, a deprecation warning is raised for
  all such occurrences, and in Perl v5.26, literal uses of a curly
  bracket will be required to be escaped, say by preceding them
  with a backslash ("\{" ) or enclosing them within square brackets
  ("[{]" ). This change will allow for future syntax extensions
  (like making the lower bound of a quantifier optional),
   and better error checking of quantifiers.

/usr/share/backuppc/lib/BackupPC/Lib.pm contains such braces in
regexp that throw warnings like:

  Unescaped left brace in regex is deprecated, passed through in
  regex; marked by <-- HERE in m/\${ <-- HERE (\w+)}(\+?)/
  at /usr/share/backuppc/lib/BackupPC/Lib.pm line 1269.

  Unescaped left brace in regex is deprecated, passed through in
  regex; marked by <-- HERE in m/(.*)\${ <-- HERE (\w+)}(\+?)(.*)/
  at /usr/share/backuppc/lib/BackupPC/Lib.pm line 1274.

patch attached.

Marcel
--- /usr/share/backuppc/lib/BackupPC/Lib.pm	2016-01-06 12:44:15.000000000 +0100
+++ /usr/share/backuppc/lib/BackupPC/Lib.pm	2016-04-05 16:23:35.706625290 +0200
@@ -1262,7 +1262,7 @@
         #
         # Replace scalar variables first
         #
-        $arg =~ s[\${(\w+)}(\+?)]{
+        $arg =~ s[\$\{(\w+)}(\+?)]{
             exists($vars->{$1}) && ref($vars->{$1}) ne "ARRAY"
                 ? ($2 eq "+" ? $bpc->shellEscape($vars->{$1}) : $vars->{$1})
                 : "\${$1}$2"
@@ -1271,7 +1271,7 @@
         # Now replicate any array arguments; this just works for just one
         # array var in each argument.
         #
-        if ( $arg =~ m[(.*)\${(\w+)}(\+?)(.*)] && ref($vars->{$2}) eq "ARRAY" ) {
+        if ( $arg =~ m[(.*)\$\{(\w+)}(\+?)(.*)] && ref($vars->{$2}) eq "ARRAY" ) {
             my $pre  = $1;
             my $var  = $2;
             my $esc  = $3;

--- End Message ---
--- Begin Message ---
Source: backuppc
Source-Version: 3.3.1-4

We believe that the bug you reported is fixed in the latest version of
backuppc, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 820...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ludovic Drolez <ldro...@debian.org> (supplier of updated backuppc package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 30 Nov 2016 19:57:51 +0100
Source: backuppc
Binary: backuppc
Architecture: source amd64
Version: 3.3.1-4
Distribution: unstable
Urgency: low
Maintainer: Ludovic Drolez <ldro...@debian.org>
Changed-By: Ludovic Drolez <ldro...@debian.org>
Description:
 backuppc   - high-performance, enterprise-grade system for backing up PCs
Closes: 810691 820092 820110
Changes:
 backuppc (3.3.1-4) unstable; urgency=low
 .
   * Added dependency on libcgi-pm-perl. Closes: #820092
   * Fixed unescaped left brace in rege. Closes: #820110
   * Remove /etc/backuppc/htpasswd /etc/backuppc/pc on purge.
     Closes: #810691
Checksums-Sha1:
 c913c7aeaf2ab463be36fe57ef2a4a66e87308c1 1309 backuppc_3.3.1-4.dsc
 a297e2fd03a58c1428e178700852473c8013c179 46931 backuppc_3.3.1-4.diff.gz
 543eeb4fbb81b5160433f1e75eb247949ea4717b 2918 backuppc-dbgsym_3.3.1-4_amd64.deb
 c6e8c8a9345b888dacce4063dae38c3ae77584fd 4747 backuppc_3.3.1-4_amd64.buildinfo
 460781ca6b7fcba43a19e877c850369a6446bb62 480724 backuppc_3.3.1-4_amd64.deb
Checksums-Sha256:
 0d4206a783cb84ee46b8503756d59111868dfac7c9eb757a3eb9228bfef15985 1309 
backuppc_3.3.1-4.dsc
 1ca29353a87c09b30b90b416519da1c2d463790e729954b809fcc565992fcf10 46931 
backuppc_3.3.1-4.diff.gz
 bc80d42f65289195743ddd44998a1fe9bba9a94ac7b25805440ed171500da596 2918 
backuppc-dbgsym_3.3.1-4_amd64.deb
 632a9c670a0f70f028cd4bc3cb9d6098e2eedbfd116e7ab033b0af3dfbf4c0ec 4747 
backuppc_3.3.1-4_amd64.buildinfo
 855b9a0dcf25158a92506f0fc9a7ee5b8798788f2a1262deed6649304705688a 480724 
backuppc_3.3.1-4_amd64.deb
Files:
 4c9ea2d544d9c3cb49eca64205871295 1309 utils optional backuppc_3.3.1-4.dsc
 55cc449f01ff1fee0cddad3f075b0a7e 46931 utils optional backuppc_3.3.1-4.diff.gz
 8d1e026b83e431b57f50e27a2ee0432d 2918 debug extra 
backuppc-dbgsym_3.3.1-4_amd64.deb
 dc569a2873360027247e224a29000f60 4747 utils optional 
backuppc_3.3.1-4_amd64.buildinfo
 9eb99cb5cac4823f13725424099dd220 480724 utils optional 
backuppc_3.3.1-4_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJYQIprAAoJEIt1KBJH+cF8WFMH/A2bYWatByhDje5+ZZAdMS4g
aWwRRtcAvA8SiKtvE8jtc/5xUB9KKzjwAwUq8+ry5GzLxLgNbwwfLR9EVokt1CmW
gW+mtTsJpGsvjyuWmz/Re0FXAcrIm5gykHZILjjlcre8Qgd8TJZmr2qwjw9SblBs
TdAdODo64ppE8hdYI8OQLklftXUx1lToAPxwR5N0eZgCVJ4yP5RHaNpFL+51sKiy
Eo4Wot4DJu3WZiEvZEFWS1oPAYxilZ/aApk60BMvmJ3LPCZcvzvIbbOift/CR2PY
Zmk4/1ESy4xAl2gxG+Dc+ACMjJxZ2EGPTOB7yjqJFBR42WQQPnO8cAlWDKNVHEY=
=uDXJ
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to