summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjfb <jfb@openbsd.org>2005-02-22 22:36:09 +0000
committerjfb <jfb@openbsd.org>2005-02-22 22:36:09 +0000
commit1bca3c832c298e059888c06a2dde15f0a16c6ce0 (patch)
tree10e38d2abf84f8070565f4a5168338d285a60a79
parentSplit the cvs daemon into two different processes: cvsd and cvsd-child. (diff)
downloadwireguard-openbsd-1bca3c832c298e059888c06a2dde15f0a16c6ce0.tar.xz
wireguard-openbsd-1bca3c832c298e059888c06a2dde15f0a16c6ce0.zip
get rid of code that shouldn't have made it in there
-rw-r--r--usr.bin/cvs/child.c34
1 files changed, 3 insertions, 31 deletions
diff --git a/usr.bin/cvs/child.c b/usr.bin/cvs/child.c
index a9ad357906b..5a4a9b7d005 100644
--- a/usr.bin/cvs/child.c
+++ b/usr.bin/cvs/child.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: child.c,v 1.1 2005/02/22 22:33:01 jfb Exp $ */
+/* $OpenBSD: child.c,v 1.2 2005/02/22 22:36:09 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -55,7 +55,6 @@
#include "log.h"
#include "cvs.h"
#include "cvsd.h"
-#include "cvspr.h"
@@ -68,9 +67,8 @@ volatile sig_atomic_t cvsd_running = 1;
static int cvsd_privfd = -1;
static char cvsd_root[MAXPATHLEN];
-static char *cvsd_motd;
-static uid_t cvsd_uid = -1;
-static gid_t cvsd_gid = -1;
+static uid_t cvsd_uid = 0;
+static gid_t cvsd_gid = 0;
/* session info */
@@ -243,29 +241,3 @@ cvsd_child_getreq(struct cvsd_req *reqp)
return ((int)ret);
}
-
-
-/*
- * cvsd_child_reqhdlr()
- *
- */
-int
-cvsd_child_reqhdlr(struct cvsp_req *req)
-{
- int ret;
-
- switch (req->req_code) {
- case CVSP_REQ_MOTD:
- ret = cvs_proto_sendresp(cvsd_sess_fd, CVSP_RESP_DONE,
- cvsd_motd, strlen(cvsd_motd) + 1);
- break;
- case CVSP_REQ_VERSION:
- case CVSP_REQ_GETMSG:
- case CVSP_REQ_SETMSG:
- default:
- ret = cvs_proto_sendresp(cvsd_sess_fd, CVSP_RESP_INVREQ,
- req->req_seq, NULL, 0);
- }
-
- return (ret);
-}