>> I can give you a simple patch setting the environment variable
>> CVS_USERNAME to "roland" (while keeping USER as "cvsiti"),
>> as well as my own loginfo logger using this, as well as adding
>> a corresponding email address if present in the "users" file.
>
>Ok, is that publically available somewhere?

I put the patch at
        ftp://ftp.gaertber.de/pub/gds/cvs-cvsuser.diff

It is also appended below.  The log formatter/mailer script I'm using
should go into my public cvs repository, I'll rather post a separate
announcement once that has been done.

                                                Martin Neitzel

Index: src/server.c
===================================================================
RCS file: /home2/cvsroot/ccvs/src/server.c,v
retrieving revision 1.242
diff -u -r1.242 server.c
--- src/server.c        2000/07/28 20:18:40     1.242
+++ src/server.c        2000/09/09 21:33:47
@@ -5265,6 +5265,12 @@
        (void) sprintf (env, "LOGNAME=%s", username);
        (void) putenv (env);
 
+       if (CVS_Username) {
+               env = xmalloc (sizeof "CVS_USERNAME=" + strlen (CVS_Username));
+               (void) sprintf (env, "CVS_USERNAME=%s", CVS_Username);
+               (void) putenv (env);
+       }
+
        env = xmalloc (sizeof "USER=" + strlen (username));
        (void) sprintf (env, "USER=%s", username);
        (void) putenv (env);

Reply via email to