Files in top directory not backed up with default maxsize=-1

Bug #300167 reported by bytebybyte
2
Affects Status Importance Assigned to Milestone
sbackup
Status tracked in Trunk
0.10
Fix Committed
Medium
Unassigned
Trunk
Invalid
Undecided
Unassigned

Bug Description

In "Branch for collecting patches for 0.10.5" (Revision 18, bzr branch lp:sbackup/0.10.5).

New default value of maxsize = -1 in /etc/sbackup.conf should not exclude any files based on size. One part of logic checks for

   maxsize > 0 and s.st_size > maxsize

other part just checks

   s.st_size > maxsize

and therefore it skips all files there when maxsize = -1

See attachment for fix.

Revision history for this message
bytebybyte (rsc-usfamily) wrote :
Martin Schaaf (mascha)
Changed in sbackup:
assignee: nobody → mascha
Revision history for this message
Martin Schaaf (mascha) wrote :

Thank you for your patch I applied it.

Changed in sbackup:
status: New → Fix Committed
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.