version 1.35, 2004/12/14 17:52:37 |
version 1.36, 2004/12/16 17:09:33 |
|
|
int argc, infd[2], outfd[2], errfd[2]; |
int argc, infd[2], outfd[2], errfd[2]; |
char *argv[16], *cvs_server_cmd, *vresp; |
char *argv[16], *cvs_server_cmd, *vresp; |
|
|
|
if (root->cr_method == CVS_METHOD_PSERVER) { |
|
cvs_log(LP_ERR, "no pserver support due to security issues"); |
|
return (-1); |
|
} else if ((root->cr_method == CVS_METHOD_KSERVER) || |
|
(root->cr_method == CVS_METHOD_GSERVER) || |
|
(root->cr_method == CVS_METHOD_EXT) || |
|
(root->cr_method == CVS_METHOD_FORK)) { |
|
cvs_log(LP_ERR, "connection method not supported yet"); |
|
return (-1); |
|
} |
|
|
if (root->cr_flags & CVS_ROOT_CONNECTED) { |
if (root->cr_flags & CVS_ROOT_CONNECTED) { |
cvs_log(LP_NOTICE, "already connected to CVSROOT"); |
cvs_log(LP_NOTICE, "already connected to CVSROOT"); |
|
|
argv[argc++] = root->cr_user; |
argv[argc++] = root->cr_user; |
} |
} |
|
|
|
|
cvs_server_cmd = getenv("CVS_SERVER"); |
cvs_server_cmd = getenv("CVS_SERVER"); |
if (cvs_server_cmd == NULL) |
if (cvs_server_cmd == NULL) |
cvs_server_cmd = CVS_SERVER_DEFAULT; |
cvs_server_cmd = CVS_SERVER_DEFAULT; |
|
|
struct cvs_req *req; |
struct cvs_req *req; |
|
|
if (root->cr_srvin == NULL) { |
if (root->cr_srvin == NULL) { |
cvs_log(LP_ERR, "cannot send request: Not connected"); |
cvs_log(LP_ERR, "cannot send request %u: Not connected", rid); |
return (-1); |
return (-1); |
} |
} |
|
|