=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/Attic/proto.c,v retrieving revision 1.35 retrieving revision 1.36 diff -c -r1.35 -r1.36 *** src/usr.bin/cvs/Attic/proto.c 2004/12/14 17:52:37 1.35 --- src/usr.bin/cvs/Attic/proto.c 2004/12/16 17:09:33 1.36 *************** *** 1,4 **** ! /* $OpenBSD: proto.c,v 1.35 2004/12/14 17:52:37 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: proto.c,v 1.36 2004/12/16 17:09:33 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 196,201 **** --- 196,211 ---- int argc, infd[2], outfd[2], errfd[2]; 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) { cvs_log(LP_NOTICE, "already connected to CVSROOT"); *************** *** 249,255 **** argv[argc++] = root->cr_user; } - cvs_server_cmd = getenv("CVS_SERVER"); if (cvs_server_cmd == NULL) cvs_server_cmd = CVS_SERVER_DEFAULT; --- 259,264 ---- *************** *** 664,670 **** struct cvs_req *req; if (root->cr_srvin == NULL) { ! cvs_log(LP_ERR, "cannot send request: Not connected"); return (-1); } --- 673,679 ---- struct cvs_req *req; if (root->cr_srvin == NULL) { ! cvs_log(LP_ERR, "cannot send request %u: Not connected", rid); return (-1); }