[cvsnt] Re: Missing author bug in 2.0.58 when cvs invoked by postcommit script

Tony Hoyle tmh at nodomain.org
Tue Oct 5 15:16:21 BST 2004


John Kinson wrote:
> If I rollback the server to 2.0.51, the script works - the author for 
> the created revision is SYSTEM.  If I upgrade the server to 2.0.58, my 
> script stops working.  Given that 2.0.52 introduced changes to the SSPI 
> domain processing (usernames are recorded as @DOMAIN\username@, rather 
> than @username@), isn't this a likely source of the bug when "cvs 
> commit" is invoked as SYSTEM?

The user should never be SYSTEM anyway... it'll be the user who is 
issuing the command (or whoever the user was overridden as).  I'm not 
sure how you managed it in 2.0.51... it'll automatically drop into 
cygwin sshd compatibility if SYSTEM tries to invoke a command and use 
$USER to work out the real username - that's been true for a long time.

using this script:
@echo off
d:
cd d:\t
if exist pc_log goto :end
echo >pc_log
cd d:\t\test
echo foo >>Changelog
cvs commit -m "xx" Changelog
cd d:\t
del pc_log
:end

generates this log (I changed the settings between each commit so it 
gets different users):
RCS file: /repo/test/Changelog,v
Working file: Changelog
head: 1.9
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 9;     selected revisions: 9
description:
----------------------------
revision 1.9
date: 2004/10/05 13:14:04;  author: tmh;  state: Exp;  lines: +1 -0; 
kopt: kv;
  commitid: ddc41629e1c4852;  filename: Changelog;
xx
----------------------------
revision 1.8
date: 2004/10/05 13:12:54;  author: TUCKER\IWAM_TUCKER;  state: Exp; 
lines: +1
-0;  kopt: kv;  commitid: f6c41629dd6476d;  filename: Changelog;
xx
----------------------------
revision 1.7
date: 2004/10/05 13:12:50;  author: TUCKER\IWAM_TUCKER;  state: Exp; 
lines: +1
-0;  kopt: kv;  commitid: 71441629dd24760;  filename: Changelog;
xx
----------------------------
revision 1.6
date: 2004/10/05 13:10:12;  author: TUCKER\IWAM_TUCKER;  state: Exp; 
lines: +1
-0;  kopt: kv;  commitid: 66841629d34455c;  filename: Changelog;
xx
----------------------------
revision 1.5
date: 2004/10/05 12:59:33;  author: tmh;  state: Exp;  lines: +1 -0; 
kopt: kv;
  commitid: b1041629ab43d32;  filename: Changelog;
xx
----------------------------
revision 1.4
date: 2004/10/05 12:56:37;  author: tmh;  state: Exp;  lines: +1 -0; 
kopt: kv;
  commitid: 6e041629a053af7;  filename: Changelog;
xx
----------------------------
revision 1.3
date: 2004/10/05 12:53:27;  author: tmh;  state: Exp;  lines: +1 -0; 
kopt: kv;
  commitid: cc841629947388a;  filename: Changelog;
xx
----------------------------



More information about the cvsnt mailing list