version 1.55, 2006/12/04 09:46:27 |
version 1.56, 2006/12/04 09:51:21 |
|
|
int |
int |
cvs_import(int argc, char **argv) |
cvs_import(int argc, char **argv) |
{ |
{ |
int ch, l; |
int ch; |
char repo[MAXPATHLEN], *arg = "."; |
char repo[MAXPATHLEN], *arg = "."; |
struct cvs_recursion cr; |
struct cvs_recursion cr; |
|
|
|
|
vendor_tag = argv[1]; |
vendor_tag = argv[1]; |
release_tag = argv[2]; |
release_tag = argv[2]; |
|
|
l = snprintf(repo, sizeof(repo), "%s/%s", current_cvsroot->cr_dir, |
if (cvs_path_cat(current_cvsroot->cr_dir, import_repository, |
import_repository); |
repo, sizeof(repo)) >= sizeof(repo)) |
if (l == -1 || l >= (int)sizeof(repo)) |
fatal("cvs_import: truncation"); |
fatal("cvs_import: overflow"); |
|
|
|
if (cvs_noexec != 1) { |
if (cvs_noexec != 1) { |
if (mkdir(repo, 0755) == -1 && errno != EEXIST) |
if (mkdir(repo, 0755) == -1 && errno != EEXIST) |