mirror of https://github.com/digint/btrbk
btrbk: bugfix: check path when expanding wildcards (warn and ignore if check fails)
Before this patch, btrbk errored (unsafe command), and then died. Fixes #181.pull/147/merge
parent
d265c34149
commit
f113436626
|
@ -7,6 +7,7 @@ btrbk-current
|
||||||
* Remove "duration" column from transaction_log/transaction_syslog.
|
* Remove "duration" column from transaction_log/transaction_syslog.
|
||||||
* Bugfix: ssh_filter_btrbk: accept mbuffer command (stream_buffer).
|
* Bugfix: ssh_filter_btrbk: accept mbuffer command (stream_buffer).
|
||||||
* Bugfix: print correct (end-)time in transaction_log.
|
* Bugfix: print correct (end-)time in transaction_log.
|
||||||
|
* Bugfix: check path when expanding wildcards (close #181).
|
||||||
|
|
||||||
btrbk-0.25.1
|
btrbk-0.25.1
|
||||||
|
|
||||||
|
|
4
btrbk
4
btrbk
|
@ -4283,6 +4283,10 @@ MAIN:
|
||||||
TRACE "skipping non-matching subvolume: $vol->{PRINT}";
|
TRACE "skipping non-matching subvolume: $vol->{PRINT}";
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
unless(defined(check_file($vol->{SUBVOL_PATH}, { relative => 1 }))) {
|
||||||
|
WARN "Ambiguous subvolume path \"$vol->{SUBVOL_PATH}\" while expanding \"$globs\", ignoring";
|
||||||
|
next;
|
||||||
|
}
|
||||||
INFO "Found source subvolume: $vol->{PRINT}";
|
INFO "Found source subvolume: $vol->{PRINT}";
|
||||||
my %conf = ( %$config_subvol,
|
my %conf = ( %$config_subvol,
|
||||||
rel_path_glob => $globs,
|
rel_path_glob => $globs,
|
||||||
|
|
Loading…
Reference in New Issue