Commit de6cbd30 authored by Russ Fish's avatar Russ Fish

Add SWAPPER= to the end of the CREATOR= value returned from "creator".

 . Bump the tmcd version to 21, since this induces an incompatibility.
 . Fix the $ anchored CREATOR= pattern in common/config/rc.misc that
   forced the version bump.
parent 71c7861e
......@@ -168,7 +168,7 @@ sub docreator()
#
# There should be just one string. Ignore anything else.
#
if ($tmccresults[0] =~ /^CREATOR=([-\w]*)$/) {
if ($tmccresults[0] =~ /^CREATOR=([-\w]*)/) {
$creator = $1;
}
else {
......
......@@ -44,7 +44,7 @@ use libtmcc;
#
# BE SURE TO BUMP THIS AS INCOMPATIBILE CHANGES TO TMCD ARE MADE!
#
sub TMCD_VERSION() { 20; };
sub TMCD_VERSION() { 21; };
libtmcc::configtmcc("version", TMCD_VERSION());
# Control tmcc timeout.
......
......@@ -25,4 +25,4 @@
* NB: See ron/libsetup.pm. That is version 4! I'll merge that in.
*/
#define DEFAULT_VERSION 2
#define CURRENT_VERSION 20
#define CURRENT_VERSION 21
......@@ -3479,7 +3479,13 @@ COMMAND_PROTOTYPE(docreator)
{
char buf[MYBUFSIZE];
OUTPUT(buf, sizeof(buf), "CREATOR=%s\n", reqp->creator);
/* There was a $ anchored CREATOR= pattern in common/config/rc.misc . */
if (vers<=20)
OUTPUT(buf, sizeof(buf), "CREATOR=%s\n", reqp->creator);
else
OUTPUT(buf, sizeof(buf), "CREATOR=%s SWAPPER=%s\n",
reqp->creator, reqp->swapper);
client_writeback(sock, buf, strlen(buf), tcp);
if (verbose)
info("CREATOR: %s", buf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment