version 1.66, 2007/01/20 01:07:51 |
version 1.67, 2007/01/31 21:07:35 |
|
|
void |
void |
cvs_import_local(struct cvs_file *cf) |
cvs_import_local(struct cvs_file *cf) |
{ |
{ |
int l; |
|
int isnew; |
int isnew; |
struct stat st; |
struct stat st; |
char repo[MAXPATHLEN]; |
char repo[MAXPATHLEN]; |
|
|
} |
} |
|
|
isnew = 1; |
isnew = 1; |
l = snprintf(repo, sizeof(repo), "%s/%s/%s/%s%s", |
(void)xsnprintf(repo, sizeof(repo), "%s/%s/%s/%s%s", |
current_cvsroot->cr_dir, cf->file_wd, CVS_PATH_ATTIC, |
current_cvsroot->cr_dir, cf->file_wd, CVS_PATH_ATTIC, |
cf->file_name, RCS_FILE_EXT); |
cf->file_name, RCS_FILE_EXT); |
if (l == -1 || l >= (int)sizeof(repo)) |
|
fatal("import_new: overflow"); |
|
|
|
if (cf->file_rcs != NULL || stat(repo, &st) != -1) |
if (cf->file_rcs != NULL || stat(repo, &st) != -1) |
isnew = 0; |
isnew = 0; |