version 1.82, 2008/02/03 18:18:44 |
version 1.83, 2008/02/09 20:04:00 |
|
|
cvs_server_directory(char *data) |
cvs_server_directory(char *data) |
{ |
{ |
CVSENTRIES *entlist; |
CVSENTRIES *entlist; |
char *dir, *repo, *parent, entry[CVS_ENT_MAXLINELEN], *dirn, *p; |
char *dir, *repo, *parent, *entry, *dirn, *p; |
|
|
if (current_cvsroot == NULL) |
if (current_cvsroot == NULL) |
fatal("No Root specified for Directory"); |
fatal("No Root specified for Directory"); |
|
|
fatal("cvs_server_directory: %s", strerror(errno)); |
fatal("cvs_server_directory: %s", strerror(errno)); |
|
|
if (strcmp(parent, ".")) { |
if (strcmp(parent, ".")) { |
entlist = cvs_ent_open(parent); |
entry = xmalloc(CVS_ENT_MAXLINELEN); |
(void)xsnprintf(entry, CVS_ENT_MAXLINELEN, "D/%s////", dirn); |
cvs_ent_line_str(dirn, NULL, NULL, NULL, NULL, 1, 0, |
|
entry, CVS_ENT_MAXLINELEN); |
|
|
|
entlist = cvs_ent_open(parent); |
cvs_ent_add(entlist, entry); |
cvs_ent_add(entlist, entry); |
cvs_ent_close(entlist, ENT_SYNC); |
cvs_ent_close(entlist, ENT_SYNC); |
|
xfree(entry); |
} |
} |
|
|
if (server_currentdir != NULL) |
if (server_currentdir != NULL) |