Do not check val-tags if the repository is read-only.
Approved by: maintainer's silence MFC after: 2 weeks
This commit is contained in:
parent
7bf298bcad
commit
40bce2b2a1
|
@ -10,6 +10,8 @@
|
||||||
* Add or delete a symbolic name to an RCS file, or a collection of RCS files.
|
* 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
|
* Tag uses the checked out revision in the current directory, rtag uses
|
||||||
* the modules database, if necessary.
|
* the modules database, if necessary.
|
||||||
|
*
|
||||||
|
* $FreeBSD$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "cvs.h"
|
#include "cvs.h"
|
||||||
|
@ -1199,6 +1201,9 @@ Numeric tag %s contains characters other than digits and '.'", name);
|
||||||
|| strcmp (name, TAG_HEAD) == 0)
|
|| strcmp (name, TAG_HEAD) == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (readonlyfs)
|
||||||
|
return;
|
||||||
|
|
||||||
/* FIXME: This routine doesn't seem to do any locking whatsoever
|
/* FIXME: This routine doesn't seem to do any locking whatsoever
|
||||||
(and it is called from places which don't have locks in place).
|
(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
|
If two processes try to write val-tags at the same time, it would
|
||||||
|
|
Loading…
Reference in New Issue