summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2007-11-09 16:27:38 +0000
committertobias <tobias@openbsd.org>2007-11-09 16:27:38 +0000
commitd892f82890cb797b85215960b268c0b64e1c145b (patch)
treefcb1f67f76a734b5c85536116a83647c082baa38
parentFix for a rather unintuitive behaviour, this way it can be reproduced: (diff)
downloadwireguard-openbsd-d892f82890cb797b85215960b268c0b64e1c145b.tar.xz
wireguard-openbsd-d892f82890cb797b85215960b268c0b64e1c145b.zip
Parse CVSROOT/config and set umask on server-side, too.
-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