[cvsnt] history error? [ Vírusmentes]

Zoltan.Szathmary at generali.hu Zoltan.Szathmary at generali.hu
Fri May 6 14:05:42 BST 2005


Hi!
Some weeks ago I asked a question about history file sturcture error.
Nobody react to it...
I hacked a little the source since then.

Some month ago, the history line looks like this:
X date | user | CurDir | special | rev(s) | argument '\n'
for example:
M273b3463|dgg|~/work*9|usr/local/cvs/examples|1.2|loginfo

but the now (for some cvsnt release) there is an additional (null) value
inserted before the user field, and argument(s) missing from the end of
line, so now the history line looks like this:
X date | (null) | user | CurDir | special | rev(s) '\n'
for example:
M273b3463|(null)|dgg|~/work*9|usr/local/cvs/examples|1.2

In the history_write() function, the only important difference between old
history.c and new history.cpp:

In the old history.c (in the v2.0.58d) write history line in this way:

    sprintf (line, "%c%08lx|%s|%s|%s|%s|%s\n",
           type, now,
           username, workdir, repos, revs, name);

the new history.cpp (in the v2.5.01.1949) write history line in this way:
    sprintf (line, "%c%08lx|%s|%s|%s|%s|%s\n",
           type, global_session_time_t,
           username, workdir, repos, revs, name);
using "global_session_time_t" instead of "now".

May this cause the above-mentioned symptom? "global-session_time_t" maybe a
64bit number, but this history_writer() wait here a 32bit number.
For this or other reasons,  but the symptom exists!
Zoltán







More information about the cvsnt mailing list