Skip to content

Commit

Permalink
gfapi-fd: Fix parsing of missing basedir argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvwieringen authored and pstorz committed Oct 12, 2017
1 parent 29733cc commit 43e1d05
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plugins/filed/gfapi-fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ enum plugin_argument_type {
argument_none,
argument_volume_spec,
argument_snapdir,
argument_basedir,
argument_gf_file_list
};

Expand All @@ -170,6 +171,7 @@ struct plugin_argument {
static plugin_argument plugin_arguments[] = {
{ "volume", argument_volume_spec },
{ "snapdir", argument_snapdir },
{ "basedir", argument_basedir },
{ "gffilelist", argument_gf_file_list },
{ NULL, argument_none }
};
Expand Down Expand Up @@ -1151,6 +1153,9 @@ static bRC parse_plugin_definition(bpContext *ctx, void *value)
case argument_snapdir:
str_destination = &p_ctx->snapdir;
break;
case argument_basedir:
str_destination = &p_ctx->basedir;
break;
case argument_gf_file_list:
str_destination = &p_ctx->gf_file_list;
break;
Expand Down

0 comments on commit 43e1d05

Please sign in to comment.