summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-03-10 22:37:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-03-10 22:37:01 +0000
commitabbe91ce4fa00972afc25b253fce97a9eb1408e0 (patch)
treed09ca013d2a7b47893ed254fb9ba1ec3adfdbf0b /usr.bin/cvs
parentec9757fc487d3cd2323f230c4affd9054ff75463 (diff)
use right permissions
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/sock.c b/usr.bin/cvs/sock.c
index fb75116fe83..40b24094177 100644
--- a/usr.bin/cvs/sock.c
+++ b/usr.bin/cvs/sock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sock.c,v 1.13 2005/03/10 22:15:03 deraadt Exp $ */
+/* $OpenBSD: sock.c,v 1.14 2005/03/10 22:37:00 deraadt Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -81,7 +81,7 @@ cvsd_sock_open(void)
return (-1);
}
- old_umask = umask(S_IXUSR|S_IXGRP|S_IWOTH|S_IROTH|S_IXOTH);
+ old_umask = umask(CVSD_SOCK_PERMS);
if (bind(cvsd_sock, (struct sockaddr *)&cvsd_sun,
SUN_LEN(&cvsd_sun)) == -1) {
cvs_log(LP_ERRNO, "failed to bind local socket to `%s'",