X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=amandad-src%2Famandad_util.c;h=1721a3220f78ac363240c8e3b4525a84d487415a;hb=b116e9366c7b2ea2c2eb53b0a13df4090e176235;hp=7444c5ea3e051dd5553900d2abfbbaa5f5416ae6;hpb=94a044f90357edefa6f4ae9f0b1d5885b0e34aee;p=debian%2Famanda diff --git a/amandad-src/amandad_util.c b/amandad-src/amandad_util.c index 7444c5e..1721a32 100644 --- a/amandad-src/amandad_util.c +++ b/amandad-src/amandad_util.c @@ -28,6 +28,7 @@ * */ +#include "amanda.h" #include "amandad.h" #include "util.h" @@ -64,18 +65,24 @@ parse_g_options( while (tok != NULL) { if(strncmp(tok,"features=", 9) == 0) { + char *t = tok+9; + char *u = strchr(t, ';'); + if (u) + *u = '\0'; if(g_options->features != NULL) { dbprintf(_("multiple features option\n")); if(verbose) { g_printf(_("ERROR [multiple features option]\n")); } } - if((g_options->features = am_string_to_feature(tok+9)) == NULL) { - dbprintf(_("bad features value \"%s\"\n"), tok+10); + if((g_options->features = am_string_to_feature(t)) == NULL) { + dbprintf(_("bad features value \"%s\"\n"), t); if(verbose) { - g_printf(_("ERROR [bad features value \"%s\"]\n"), tok+10); + g_printf(_("ERROR [bad features value \"%s\"]\n"), t); } } + if (u) + *u = ';'; } else if(strncmp(tok,"hostname=", 9) == 0) { if(g_options->hostname != NULL) {