]> oss.titaniummirror.com Git - ovzbpc.git/commitdiff
bpcdump: correct defect that removes all data
authorR. Steve McKown <rsmckown@gmail.com>
Fri, 12 Oct 2012 23:24:30 +0000 (17:24 -0600)
committerR. Steve McKown <rsmckown@gmail.com>
Fri, 12 Oct 2012 23:24:30 +0000 (17:24 -0600)
If when looking for space to reclaim for a new backup the ls that scans
for old backups finds nothing, the empty result ends up causing a
recursive removal of the entire contents of the destination directory
(usually a mount point for a partition on a removeable drive).

The correct behavior is to error with a message indicating not enough
space in such situations.


No differences found