From c849edd3cf232a905e1d836597c97bca87f5a084 Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Sun, 26 Mar 2023 14:11:50 +0200 Subject: [PATCH] btrbk: check target dir in action_cp --- btrbk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/btrbk b/btrbk index 231bbfb..6c53b99 100755 --- a/btrbk +++ b/btrbk @@ -6011,6 +6011,11 @@ MAIN: url => $droot->{URL}, }; + unless(system_testdir($droot)) { + ERROR "Not a directory: $droot->{PRINT}"; + exit 1; + } + my $exit_status = 0; my @subvol_src; foreach my $svol (@subvol_args) {