Skip to content

Commit

Permalink
doveadm: Ensure -- is added to command line before positional arguments
Browse files Browse the repository at this point in the history
This prevents parser from choking on dash.
  • Loading branch information
cmouse authored and sirainen committed Feb 27, 2017
1 parent fcbeb4f commit d466d48
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/doveadm/doveadm-mail.c
Expand Up @@ -1051,6 +1051,9 @@ doveadm_cmd_ver2_to_mail_cmd_wrapper(struct doveadm_cmd_context *cctx)
}
}

const char *dashdash = "--";
array_append(&full_args, &dashdash, 1);

array_append_zero(&pargv);
/* All the -parameters need to be included in full_args so that
they're sent to doveadm-server. */
Expand Down

0 comments on commit d466d48

Please sign in to comment.