]> git.ipfire.org Git - thirdparty/bacula.git/commit
Fix #7628 About 'reload' command crashing the director
authorMichal Rakowski <michal.rakowski@baculasystems.com>
Fri, 14 May 2021 11:55:46 +0000 (13:55 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:02 +0000 (09:03 +0100)
commita400aabdd394a3ac24668454baf3e128186b74ab
treecbfaf034d3a4d083017778249d204a244819e9c5
parent0e1bd0ab201d6f103002c0d515e2df9e164de062
Fix #7628 About 'reload' command crashing the director

This issue was not seen when trying to start the director with the same,
broken config file. It's because we use different error codes for config
parsing when the dir is being started and when we do the reload. For the
startup, we use M_ERROR_TERM which in the end just stops the director.
In case of reload we use M_ERROR (since we don't want the dir to stop in
case of trying to load broken config), so the error from parsing config
was not propagated anywhere (err msg was printed, but the parser's
caller could be unaware about it). New field was added to inform about
the error, besides printing err message.
bacula/src/lib/ini.c
bacula/src/lib/lex.c
bacula/src/lib/lex.h
bacula/src/lib/parse_conf.c
bacula/src/stored/parse_bsr.c