Bug 1389780

Summary: 'Unescaped left brace ' warnings in Lib.pm
Product: [Fedora] Fedora Reporter: Dominique Brazziel <sixerjman>
Component: BackupPCAssignee: Richard Shaw <hobbes1069>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 24CC: contact, hobbes1069, kevin, lef
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-27 19:10:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Dominique Brazziel 2016-10-28 15:09:25 UTC
Description of problem:
Warning messages in log 'Unescaped left brace' in Lib.pm at lines 1268 and 1273. 

Version-Release number of selected component (if applicable):


How reproducible:
Warnings reappeared after 'pcre' package was upgraded.

Steps to Reproduce:
1. Upgrade pcre to latest version
2. Select log from the BackupPC menu
3.

Actual results:
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 1268.
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 1273.

Expected results:
No warning messages

Additional info:

Comment 1 Gabriele Pohl 2016-10-31 15:16:23 UTC
same error here with BackupPC-3.3.1-6.fc24.x86_64

Comment 2 Dominique Brazziel 2016-12-09 15:26:15 UTC
Still happening with Fedora release 25:

Name        : BackupPC
Version     : 3.3.1
Release     : 6.fc25

Comment 3 Richard Shaw 2017-04-05 12:47:38 UTC
I can fix this but I don't think there will be many "fresh" installs of BackupPC on F24 or F25 at this point. I have built 4.1.1 for rawhide and F26 and submitted an update. 

I'm also supporting 4.1.1 on F25 through COPR[1]

If you choose to update there is manual intervention required because the ssh and rsync settings were split up so my recommendation is to adopt config.pl.rpmnew and diff your old config.pl and migrate your customizations over.

[1] https://copr.fedorainfracloud.org/coprs/hobbes1069/BackupPC/