From d1b0f1d29587bef141649bbe34eeb1bc01ba4975 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 22 May 2008 19:09:52 +0000 Subject: [PATCH] - client: copy api_version of APP_VERSIONs in scheduler reply, even if we already have the APP_VERSION. Otherwise, when upgrading from 5.10 to 6.2, we won't have the api_version, and we won't learn about it until project releases new version. svn path=/trunk/boinc/; revision=15277 --- checkin_notes | 11 +++++++++++ client/cs_scheduler.C | 1 + 2 files changed, 12 insertions(+) diff --git a/checkin_notes b/checkin_notes index 9b633912fb..2fdd5e9846 100644 --- a/checkin_notes +++ b/checkin_notes @@ -4233,3 +4233,14 @@ David May 21 2008 lib/ boinc_cmd.C win_util.C,h + +David May 22 2008 + - client: copy api_version of APP_VERSIONs in scheduler reply, + even if we already have the APP_VERSION. + Otherwise, when upgrading from 5.10 to 6.2, + we won't have the api_version, + and we won't learn about it until project releases new version. + + + client/ + cs_scheduler.C diff --git a/client/cs_scheduler.C b/client/cs_scheduler.C index 956a1c7fed..f951f1a26e 100644 --- a/client/cs_scheduler.C +++ b/client/cs_scheduler.C @@ -680,6 +680,7 @@ int CLIENT_STATE::handle_scheduler_reply( strcpy(avp->cmdline, avpp.cmdline); avp->coprocs.delete_coprocs(); avp->coprocs = avpp.coprocs; + strlcpy(avp->api_version, avpp.api_version, sizeof(avp->api_version)); // if we had download failures, clear them //