Excluding files by type excludes more than expected

Bug #258542 reported by boga
2
Affects Status Importance Assigned to Milestone
nssbackup
Fix Released
Medium
Jean-Peer Lorenz
sbackup
Status tracked in Trunk
0.10
New
Undecided
Unassigned
0.11
Fix Released
Medium
Unassigned
Trunk
Fix Released
Medium
Unassigned

Bug Description

Excluding file types incorrectly excludes all the files that contain a dot followed by specified extension anywhere in the file path or name. E.g. if I add "o" to excluded file types I expect only files matching "\.o$" regexp to be excluded. However files matching "\.o" regexp are excluded indeed like "file.obj" or "openoffice.org/anyfile".
A temporary workaround is to avoid using Exclude -> File types, use Exclude -> Regex instead.

Revision history for this message
Martin Schaaf (mascha) wrote :

The file type values are translated to regular expression without a $ the end.

Changed in sbackup:
status: New → Confirmed
Martin Schaaf (mascha)
Changed in sbackup:
assignee: nobody → mascha
importance: Undecided → Medium
Martin Schaaf (mascha)
Changed in sbackup:
status: Confirmed → Fix Committed
Revision history for this message
Jean-Peer Lorenz (peer.loz) wrote :

Thanks for the fix, Martin. I've cherry picked this from your branch and incorporated it in nssbackup series 0.2.

Changed in nssbackup:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Jean-Peer Lorenz (peer.loz)
milestone: none → release0.2
Changed in nssbackup:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.