mirror of https://github.com/BOINC/boinc.git
- 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:
parent
bbace695cb
commit
fe75c574a9
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue