| Summary: | cvs checkout bug with existing val-tags and readonlyfs | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Dmitry Morozovsky <marck> |
| Component: | gnu | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Unspecified | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Dmitry Morozovsky
2001-04-22 16:04:17 UTC
When:
- repository is readonly, and
- there is CVSROOT/val-tags file, and
- you try to check out tree with valid tag, and
- this tag is not exist in CVSROOT/val-tags file
cvs exits with an error such as:
[checkout aborted]: cannot write /.../CVSROOT/val-tags: Read-only file system
Fix: Just do not try to modify val-tags when readonlyfs is set:
- if (noexec)
+ /* Do not try to add tags if our repository is read-only */
+ if (noexec || readonlyfs)
{
if (db != NULL)
dbm_close (db);--GySbVGWf5issa6lXYEtDViQRBji2PT3Gfu4ub3RpgvlOPeud
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"
Index: src/contrib/cvs/src/tag.c
===================================================================
RCS file: /pub/FreeBSD/ncvs/src/contrib/cvs/src/tag.c,v
retrieving revision 1.1.1.6.2.1
diff -u -r1.1.1.6.2.1 tag.c
--- src/contrib/cvs/src/tag.c 2000/10/31 09:37:58 1.1.1.6.2.1
+++ src/contrib/cvs/src/tag.c 2001/04/22 14:15:48
@@ -868,7 +868,8 @@
/* The tags is valid but not mentioned in val-tags. Add it. */
datum value;
How-To-Repeat:
See description.
Addition: the example of checkout sequence may be mount -r /pub <- directory with FreeBSD repository cvs -R -d /pub/FreeBSD/ncvs checkout -P -r RELENG_4_3_0_RELEASE src Sincerely, D.Marck [DM5020, DM268-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ State Changed From-To: open->analyzed This patch is present in cvs 1.11.1p1 from http://www.cvshome.org/ I am currently discussing importing the new version. State Changed From-To: analyzed->closed Peter Wemm imported this version 1.11.1p1 in CURRENT and MFC'd it to STABLE. |