diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-08-05 16:22:51 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-08-05 16:22:51 +0000 |
commit | cf46733632c7279a9fd0fe6ce26f9185a4ae82a9 (patch) | |
tree | da27775a2161723ef342e91af41a8b51fedef405 /subversion/svn/export-cmd.c | |
parent | bb0ef45f7c46b0ae221b26265ef98a768c33f820 (diff) | |
download | subversion-tarball-master.tar.gz |
subversion-1.9.7HEADsubversion-1.9.7master
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 75b6723..45554fa 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)); |