- client: send client_cap_plan_class as <x>1</x> rather than <x/>

in scheduler request; the latter breaks older schedulers.
- old parse code: make skip_unexpected() work with <x/>

svn path=/trunk/boinc/; revision=15027
This commit is contained in:
David Anderson 2008-04-07 16:04:02 +00:00
parent bbace695cb
commit fe75c574a9
3 changed files with 13 additions and 1 deletions

View File

@ -3144,3 +3144,13 @@ Rom April 7 2008 (HEAD)
/
configure.ac
version.h
David April 7 2008
- client: send client_cap_plan_class as <x>1</x> rather than <x/>
in scheduler request; the latter breaks older schedulers.
- old parse code: make skip_unexpected() work with <x/>
client/
cs_scheduler.C
lib/
parse.C

View File

@ -137,7 +137,7 @@ int CLIENT_STATE::make_scheduler_request(PROJECT* p) {
// write client capabilities
//
fprintf(f,
" <client_cap_plan_class/>\n"
" <client_cap_plan_class>1</client_cap_plan_class>\n"
);
write_platforms(p, mf);

View File

@ -358,6 +358,7 @@ void xml_unescape(const char* in, char* out) {
// we got an unrecognized line.
// If it has two <'s (e.g. <foo>xx</foo>) return 0.
// If it's of the form <foo/> return 0.
// If it's of the form <foo> then scan for </foo> and return 0.
// Otherwise return ERR_XML_PARSE
//
@ -376,6 +377,7 @@ int skip_unrecognized(char* buf, MIOFILE& fin) {
if (!q) {
return ERR_XML_PARSE;
}
if (q[-1] == '/') return 0;
*q = 0;
close_tag = string("</") + string(p+1) + string(">");
while (fin.fgets(buf2, 256)) {