summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2007-11-09 16:27:39 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2007-11-09 16:27:39 +0000
commit9448467ffb4abd5284cb9f29a1b29a3b661f1392 (patch)
treef9bc52eb001a408ac6182ee5468b71fcb599c205 /usr.bin
parentc026ca6affb58d2b01cb76cebf76a1f3af021ce3 (diff)
Parse CVSROOT/config and set umask on server-side, too.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/server.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/cvs/server.c b/usr.bin/cvs/server.c
index 4270243ebc9..d47fad5b3e5 100644
--- a/usr.bin/cvs/server.c
+++ b/usr.bin/cvs/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.72 2007/09/22 16:01:22 joris Exp $ */
+/* $OpenBSD: server.c,v 1.73 2007/11/09 16:27:38 tobias Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -15,6 +15,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
@@ -165,6 +166,9 @@ cvs_server_root(char *data)
if (data[0] != '/' || (current_cvsroot = cvsroot_get(data)) == NULL)
fatal("Invalid Root specified!");
+
+ cvs_parse_configfile();
+ umask(cvs_umask);
}
void