From 8cd20da680dd420134d58be9c9cf2ae48a9385e7 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 6 Sep 2011 22:50:46 +0000 Subject: [PATCH] - client: fix bugs with white space around code sign keys and file signatures - client: when describing app versions in scheduler requests, we still must use CUDA instead of NVIDIA; that's what's in the server code. svn path=/trunk/boinc/; revision=24135 --- checkin_notes | 9 +++++++++ client/client_types.cpp | 8 +++++--- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/checkin_notes b/checkin_notes index d49bc72fba..217c0553fb 100644 --- a/checkin_notes +++ b/checkin_notes @@ -5634,3 +5634,12 @@ David 6 Sept 2011 sched/ sched_send.cpp + +David 6 Sept 2011 + - client: fix bugs with white space around code sign keys + and file signatures + - client: when describing app versions in scheduler requests, + we still must use CUDA instead of NVIDIA; that's what's in the server code. + + client/ + client_types.cpp diff --git a/client/client_types.cpp b/client/client_types.cpp index 8b5b42ebf8..2d6e89d82f 100644 --- a/client/client_types.cpp +++ b/client/client_types.cpp @@ -227,7 +227,6 @@ int PROJECT::parse_state(XML_PARSER& xp) { ); if (retval) return retval; strip_whitespace(code_sign_key); - strcat(code_sign_key, "\n"); continue; } if (xp.parse_int("nrpc_failures", nrpc_failures)) continue; @@ -969,6 +968,7 @@ int FILE_INFO::parse(XML_PARSER& xp) { sizeof(file_signature) ); if (retval) return retval; + strip_whitespace(file_signature); continue; } if (xp.match_tag("signatures")) { @@ -1081,7 +1081,7 @@ int FILE_INFO::write(MIOFILE& out, bool to_server) { if (gzip_when_done) out.printf(" \n"); if (signature_required) out.printf(" \n"); if (is_user_file) out.printf(" \n"); - if (strlen(file_signature)) out.printf(" \n%s\n", file_signature); + if (strlen(file_signature)) out.printf(" \n%s\n\n", file_signature); } for (i=0; i\n" " %s\n" " %f\n" " \n", - rsc_name(gpu_usage.rsc_type), + p, gpu_usage.usage ); }