diff options
author | Peter Wemm <peter@FreeBSD.org> | 2015-10-12 08:54:49 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2015-10-12 08:54:49 +0000 |
commit | dc5d469d6574e9fb03bdd793658bb371315b306a (patch) | |
tree | 013c2e6845398e5a9ca4901dcc077769c7520e1d /subversion/svn/export-cmd.c | |
parent | 58218291fa73a17020ef0447398e9e8a78f9e8c7 (diff) |
Diffstat (limited to 'subversion/svn/export-cmd.c')
-rw-r--r-- | subversion/svn/export-cmd.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/subversion/svn/export-cmd.c b/subversion/svn/export-cmd.c index 75b6723a3a11..45554fa4c510 100644 --- a/subversion/svn/export-cmd.c +++ b/subversion/svn/export-cmd.c @@ -85,7 +85,15 @@ svn_cl__export(apr_getopt_t *os, if (strcmp("", to) != 0) /* svn_cl__eat_peg_revisions() but only on one target */ - SVN_ERR(svn_opt__split_arg_at_peg_revision(&to, NULL, to, pool)); + { + const char *peg; + + SVN_ERR(svn_opt__split_arg_at_peg_revision(&to, &peg, to, pool)); + if (peg[0] && peg[1]) + return svn_error_createf(SVN_ERR_ILLEGAL_TARGET, NULL, + _("'%s': a peg revision is not allowed here"), + APR_ARRAY_IDX(targets, 1, const char *)); + } } SVN_ERR(svn_cl__check_target_is_local_path(to)); |