]> oss.titaniummirror.com Git - ovzbpc.git/commit
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)
commitbe37b5de33b5d1b30be4636284bc18ff773e8122
treee1ed5bda9a0aeeae7b26fd36dd6a1a04ef95bebf
parent2289d8cb0089b72802c6a39cdce181d57cf239a8
bpcdump: correct defect that removes all data

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.
bpcdump