version 1.2, 2005/04/15 08:23:17 |
version 1.3, 2005/04/16 20:05:05 |
|
|
static CVSRPENT* |
static CVSRPENT* |
cvs_repo_loadrec(CVSREPO *repo, const char *path) |
cvs_repo_loadrec(CVSREPO *repo, const char *path) |
{ |
{ |
int ret, fd; |
int ret, fd, l; |
long base; |
long base; |
u_char *dp, *ep; |
u_char *dp, *ep; |
mode_t fmode; |
mode_t fmode; |
|
|
(ent->d_name[1] == '.'))) |
(ent->d_name[1] == '.'))) |
continue; |
continue; |
|
|
snprintf(pbuf, sizeof(pbuf), "%s/%s", path, |
l = snprintf(pbuf, sizeof(pbuf), "%s/%s", path, |
ent->d_name); |
ent->d_name); |
|
if (l == -1 || l >= (int)sizeof(pbuf)) { |
|
errno = ENAMETOOLONG; |
|
cvs_log(LP_ERRNO, "%s", pbuf); |
|
|
|
cvs_repo_entree(cfp); |
|
(void)close(fd); |
|
return (NULL); |
|
} |
|
|
if ((ent->d_type != DT_DIR) && |
if ((ent->d_type != DT_DIR) && |
(ent->d_type != DT_REG)) { |
(ent->d_type != DT_REG)) { |