X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fstored%2Fbls.c;h=a86c09943cfd20de6a316e65a95185e079b4e831;hb=36b40d5c7f3ff90565ab73ac75f0dc4f6660ff37;hp=3e18ddb76f70fadf5d5ba03ef5217d26bea37f0e;hpb=707382aa336e3b8725f63bef7eeab7b364df955b;p=bacula%2Fbacula diff --git a/bacula/src/stored/bls.c b/bacula/src/stored/bls.c index 3e18ddb76f..a86c09943c 100644 --- a/bacula/src/stored/bls.c +++ b/bacula/src/stored/bls.c @@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - Bacula® is a registered trademark of John Walker. + Bacula® is a registered trademark of Kern Sibbald. The licensor of Bacula is the Free Software Foundation Europe (FSFE), Fiduciary Program, Sumatrastrasse 25, 8006 Zürich, Switzerland, email:ftf@fsfeurope.org. @@ -40,6 +40,7 @@ /* Dummy functions */ int generate_daemon_event(JCR *jcr, const char *event) { return 1; } +extern bool parse_sd_config(CONFIG *config, const char *configfile, int exit_code); static void do_blocks(char *infname); static void do_jobs(char *infname); @@ -58,6 +59,7 @@ static JCR *jcr; static SESSION_LABEL sessrec; static uint32_t num_files = 0; static ATTR *attr; +static CONFIG *config; #define CONFIG_FILE "bacula-sd.conf" char *configfile = NULL; @@ -78,7 +80,7 @@ PROG_COPYRIGHT "\nVersion: %s (%s)\n\n" "Usage: bls [options] \n" " -b specify a bootstrap file\n" -" -c specify a config file\n" +" -c specify a Storage configuration file\n" " -d set debug level to \n" " -dt print timestamp in debug output\n" " -e exclude list\n" @@ -214,7 +216,8 @@ int main (int argc, char *argv[]) configfile = bstrdup(CONFIG_FILE); } - parse_config(configfile); + config = new_config_parser(); + parse_sd_config(config, configfile, M_ERROR_TERM); if (ff->included_files_list == NULL) { add_fname_to_include_list(ff, 0, "/"); @@ -475,4 +478,3 @@ bool dir_get_volume_info(DCR *dcr, enum get_vol_info_rw writing) Dmsg2(500, "Vol=%s num_parts=%d\n", dcr->VolCatInfo.VolCatName, dcr->VolCatInfo.VolCatParts); return 1; } -