version 1.102, 2009/03/19 09:53:16 |
version 1.103, 2015/01/16 06:40:07 |
|
|
{ |
{ |
FILE *fp; |
FILE *fp; |
CVSENTRIES *ep; |
CVSENTRIES *ep; |
char *p, buf[MAXPATHLEN]; |
char *p, buf[PATH_MAX]; |
struct cvs_ent *ent; |
struct cvs_ent *ent; |
struct cvs_ent_line *line; |
struct cvs_ent_line *line; |
|
|
|
|
int i, linenum; |
int i, linenum; |
size_t len; |
size_t len; |
struct tm datetm; |
struct tm datetm; |
char linebuf[128], tagpath[MAXPATHLEN]; |
char linebuf[128], tagpath[PATH_MAX]; |
|
|
cvs_directory_date = -1; |
cvs_directory_date = -1; |
|
|
|
|
if (nbp != NULL) |
if (nbp != NULL) |
*nbp = 0; |
*nbp = 0; |
|
|
i = snprintf(tagpath, MAXPATHLEN, "%s/%s", dir, CVS_PATH_TAG); |
i = snprintf(tagpath, PATH_MAX, "%s/%s", dir, CVS_PATH_TAG); |
if (i < 0 || i >= MAXPATHLEN) |
if (i < 0 || i >= PATH_MAX) |
return; |
return; |
|
|
if ((fp = fopen(tagpath, "r")) == NULL) { |
if ((fp = fopen(tagpath, "r")) == NULL) { |
|
|
{ |
{ |
FILE *fp; |
FILE *fp; |
RCSNUM *rev; |
RCSNUM *rev; |
char tagpath[MAXPATHLEN]; |
char tagpath[PATH_MAX]; |
char sticky[CVS_REV_BUFSZ]; |
char sticky[CVS_REV_BUFSZ]; |
struct tm datetm; |
struct tm datetm; |
int i; |
int i; |
|
|
if (cvs_noexec == 1) |
if (cvs_noexec == 1) |
return; |
return; |
|
|
i = snprintf(tagpath, MAXPATHLEN, "%s/%s", dir, CVS_PATH_TAG); |
i = snprintf(tagpath, PATH_MAX, "%s/%s", dir, CVS_PATH_TAG); |
if (i < 0 || i >= MAXPATHLEN) |
if (i < 0 || i >= PATH_MAX) |
return; |
return; |
|
|
if (tag != NULL || cvs_specified_date != -1 || |
if (tag != NULL || cvs_specified_date != -1 || |