rwoehler | 27 Jul 2005 15:33

[Issue 261] New - duplicate LogHistory warning in multi-root pserver

https://ccvs.cvshome.org/issues/show_bug.cgi?id=261
                 Issue #|261
                 Summary|duplicate LogHistory warning in multi-root pserver
               Component|ccvs
                 Version|1.12.12
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|server
             Assigned to|issues <at> ccvs
             Reported by|rwoehler

------- Additional comments from rwoehler <at> cvshome.org Wed Jul 27 06:33:49 -0700 2005 -------
If I set LogHistory in the cvs config files in a multi-root pserver installation
to anything but "all" every client operation aborts with "warning: duplicate
LogHistory entry found".

The problem is "static int gotone" in parseinfo.c, since the config file is read
for every root listed with the --allow-root command line option. The "gotone"
first appears in parseinfo.c 1.72.

Removing the "static" and moving the declaration to the top of parse_config()
fixed it (tested on Sparc Solaris 2.8, "make check" completes successfully).
However, having several "LogHistory=all" entries along with a single "other"
LogHistory entry is not considered an error.

Gmane