summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/src
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2004-08-05 17:47:35 +0000
committerdes <des@FreeBSD.org>2004-08-05 17:47:35 +0000
commit79a91ff42c82da1658e3c49200b5364aa1b70d40 (patch)
tree1995ce954dde7bbf6b351595ac0def50d7964e8a /contrib/cvs/src
parente1a649e47c2da068c7b96c177b0bd10017d21440 (diff)
downloadFreeBSD-src-79a91ff42c82da1658e3c49200b5364aa1b70d40.zip
FreeBSD-src-79a91ff42c82da1658e3c49200b5364aa1b70d40.tar.gz
Do not check val-tags if the repository is read-only.
Approved by: maintainer's silence MFC after: 2 weeks
Diffstat (limited to 'contrib/cvs/src')
-rw-r--r--contrib/cvs/src/tag.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/cvs/src/tag.c b/contrib/cvs/src/tag.c
index ab4992f..903f357 100644
--- a/contrib/cvs/src/tag.c
+++ b/contrib/cvs/src/tag.c
@@ -10,6 +10,8 @@
* Add or delete a symbolic name to an RCS file, or a collection of RCS files.
* Tag uses the checked out revision in the current directory, rtag uses
* the modules database, if necessary.
+ *
+ * $FreeBSD$
*/
#include "cvs.h"
@@ -1199,6 +1201,9 @@ Numeric tag %s contains characters other than digits and '.'", name);
|| strcmp (name, TAG_HEAD) == 0)
return;
+ if (readonlyfs)
+ return;
+
/* FIXME: This routine doesn't seem to do any locking whatsoever
(and it is called from places which don't have locks in place).
If two processes try to write val-tags at the same time, it would
OpenPOWER on IntegriCloud