diff options
author | peter <peter@FreeBSD.org> | 2015-10-12 08:54:49 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2015-10-12 08:54:49 +0000 |
commit | c18b5d7f26f112be58bb1c4660799dea49f219ba (patch) | |
tree | 013c2e6845398e5a9ca4901dcc077769c7520e1d /subversion/svn/export-cmd.c | |
parent | 91308aec6ca93cab82659cd43b3f6a83d366350b (diff) | |
download | FreeBSD-src-c18b5d7f26f112be58bb1c4660799dea49f219ba.zip FreeBSD-src-c18b5d7f26f112be58bb1c4660799dea49f219ba.tar.gz |
Vendor import of subversion-1.9.2
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)); |