]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix org#2487 Get working directory from dbcheck in make_catalog_backup.pl
authorEric Bollengier <eric@baculasystems.com>
Mon, 8 Jun 2020 11:14:50 +0000 (13:14 +0200)
committerEric Bollengier <eric@baculasystems.com>
Mon, 8 Jun 2020 11:17:20 +0000 (13:17 +0200)
bacula/src/cats/make_catalog_backup.pl.in

index e444d97c3c42a9b1957278e18c3da23929384732..0f3649fe48000fc8fa04a69f1b88e957bf78a048 100644 (file)
@@ -137,6 +137,9 @@ sub analyse_mysql
 sub handle_catalog
 {
     my ($mode, %args) = @_;
+    if (exists $args{working_dir} and $wd ne $args{working_dir}) {
+       $wd = $args{working_dir};
+    }
     if ($args{db_type} eq 'SQLite3') {
         $ENV{PATH}="@SQLITE_BINDIR@:$ENV{PATH}";
         if ($mode eq 'dump') {