summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/src/server.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-05-17 14:01:25 +0000
committerpeter <peter@FreeBSD.org>1997-05-17 14:01:25 +0000
commit2b6097ead395b5f74ff086294c4f98df30336c06 (patch)
tree20e081b488e9845cd7a367a561ed9494f233c0e6 /contrib/cvs/src/server.c
parent4ad318b32399144ef4e0cb771bdc202bb9cbdb12 (diff)
downloadFreeBSD-src-2b6097ead395b5f74ff086294c4f98df30336c06.zip
FreeBSD-src-2b6097ead395b5f74ff086294c4f98df30336c06.tar.gz
Pull in OpenBSD's support for checking out from a read-only repository,
such as within an anoncvs server, or from a CDROM repository. Cyclic (the cvs maintainers) do not like this approach and have an alternative read-only system, but that requires a read/write repository to work (which rules out CDROM). Obtained from: OpenBSD
Diffstat (limited to 'contrib/cvs/src/server.c')
-rw-r--r--contrib/cvs/src/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/cvs/src/server.c b/contrib/cvs/src/server.c
index 432e9f9..bc3f4d2 100644
--- a/contrib/cvs/src/server.c
+++ b/contrib/cvs/src/server.c
@@ -543,7 +543,7 @@ serve_root (arg)
}
(void) strcat (path, "/");
(void) strcat (path, CVSROOTADM_HISTORY);
- if (isfile (path) && !isaccessible (path, R_OK | W_OK))
+ if (readonlyfs == 0 && isfile (path) && !isaccessible (path, R_OK | W_OK))
{
save_errno = errno;
pending_error_text = malloc (80 + strlen (path));
OpenPOWER on IntegriCloud