diff options
author | peter <peter@FreeBSD.org> | 2000-10-02 06:33:59 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-10-02 06:33:59 +0000 |
commit | 590c411955d6975551ffeaf41d7faf4b26f836d1 (patch) | |
tree | c2ec0b150478a3cab9fb18e60d02dedbdc1cfd15 /contrib/cvs/src/repos.c | |
parent | 784ea5066cbea73d04e8ce5783dd0eb842e3ac1f (diff) | |
download | FreeBSD-src-590c411955d6975551ffeaf41d7faf4b26f836d1.zip FreeBSD-src-590c411955d6975551ffeaf41d7faf4b26f836d1.tar.gz |
Import cvs-1.11 onto vendor branch.
Diffstat (limited to 'contrib/cvs/src/repos.c')
-rw-r--r-- | contrib/cvs/src/repos.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/cvs/src/repos.c b/contrib/cvs/src/repos.c index 2738665..bc2b4be 100644 --- a/contrib/cvs/src/repos.c +++ b/contrib/cvs/src/repos.c @@ -106,12 +106,6 @@ Name_Repository (dir, update_dir) * one by tacking on the CVSROOT environment variable. If the CVSROOT * environment variable is not set, die now. */ - if (strcmp (repos, "..") == 0 || strncmp (repos, "../", 3) == 0) - { - error (0, 0, "in directory %s:", xupdate_dir); - error (0, 0, "`..'-relative repositories are not supported."); - error (1, 0, "illegal source repository"); - } if (! isabsolute(repos)) { char *newrepos; @@ -123,6 +117,12 @@ Name_Repository (dir, update_dir) error (0, 0, "or specify the '-d' option to %s.", program_name); error (1, 0, "illegal repository setting"); } + if (pathname_levels (repos) > 0) + { + error (0, 0, "in directory %s:", xupdate_dir); + error (0, 0, "`..'-relative repositories are not supported."); + error (1, 0, "illegal source repository"); + } newrepos = xmalloc (strlen (CVSroot_directory) + strlen (repos) + 10); (void) sprintf (newrepos, "%s/%s", CVSroot_directory, repos); free (repos); |