version 1.33, 2006/12/15 13:12:14 |
version 1.34, 2006/12/15 15:40:28 |
|
|
void |
void |
cvs_client_senddir(const char *dir) |
cvs_client_senddir(const char *dir) |
{ |
{ |
|
struct stat st; |
int nb; |
int nb; |
char *d, *date, *repo, *tag; |
char *d, *date, *fpath, *repo, *tag; |
|
|
d = NULL; |
d = NULL; |
|
|
|
|
cvs_client_send_request("Directory %s\n%s", dir, repo); |
cvs_client_send_request("Directory %s\n%s", dir, repo); |
|
|
xfree(repo); |
xfree(repo); |
|
|
|
fpath = xmalloc(MAXPATHLEN); |
|
if (cvs_path_cat(dir, CVS_PATH_STATICENTRIES, fpath, MAXPATHLEN) >= |
|
MAXPATHLEN) |
|
fatal("cvs_client_senddir: truncation"); |
|
|
|
if (stat(fpath, &st) == 0 && (st.st_mode & (S_IRUSR|S_IRGRP|S_IROTH))) |
|
cvs_client_send_request("Static-directory"); |
|
|
|
xfree(fpath); |
|
|
d = xstrdup(dir); |
d = xstrdup(dir); |
cvs_parse_tagfile(d, &tag, &date, &nb); |
cvs_parse_tagfile(d, &tag, &date, &nb); |