version 1.115, 2007/09/04 19:07:04 |
version 1.116, 2007/09/09 20:24:06 |
|
|
#include "cvs.h" |
#include "cvs.h" |
#include "remote.h" |
#include "remote.h" |
|
|
|
extern int print_stdout; |
|
|
/* letter -> mode type map */ |
/* letter -> mode type map */ |
static const int cvs_modetypes[26] = { |
static const int cvs_modetypes[26] = { |
-1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, |
-1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, |
|
|
{ |
{ |
FILE *fp; |
FILE *fp; |
char *s, fpath[MAXPATHLEN]; |
char *s, fpath[MAXPATHLEN]; |
|
|
|
/* During checkout -p, do not use any locally available files. */ |
|
if (cvs_cmdop == CVS_OP_CHECKOUT && print_stdout) { |
|
dst[0] = '\0'; |
|
if (strlcat(dst, dir, len) >= len) |
|
fatal("cvs_get_repository_name: truncation"); |
|
return; |
|
} |
|
|
(void)xsnprintf(fpath, sizeof(fpath), "%s/%s", |
(void)xsnprintf(fpath, sizeof(fpath), "%s/%s", |
dir, CVS_PATH_REPOSITORY); |
dir, CVS_PATH_REPOSITORY); |