Below you'll find a patch which adds the CVS user name to the data
that is written to a loginfo handler.  It's very complicated to
determine it if you're using pserver and multiple CVS users are mapped
to one Unix user (in this case, you can't use getuid(), as some
scripts do).

--- logmsg.c    2000/02/25 18:09:55     1.1
+++ logmsg.c    2000/02/25 18:14:13
@@ -823,13 +823,14 @@
     (void) fprintf (pipefp, "In directory %s:", hostname);
     cp = xgetwd ();
     if (cp == NULL)
-       fprintf (pipefp, "<cannot get working directory: %s>\n\n",
+       fprintf (pipefp, "<cannot get working directory: %s>\n",
                 strerror (errno));
     else
     {
-       fprintf (pipefp, "%s\n\n", cp);
+       fprintf (pipefp, "%s\n", cp);
        free (cp);
     }
+    (void) fprintf (pipefp, "By %s\n\n", getcaller());
 
     setup_tmpfile (pipefp, "", changes);
     (void) fprintf (pipefp, "Log Message:\n%s\n", message);


-- 
Florian Weimer                    [EMAIL PROTECTED]
RUS-CERT, Univ. Stuttgart         http://cert.uni-stuttgart.de/

Reply via email to