From d27633a516d85bd20aa127339897815b460a9ec9 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Mon, 2 May 2011 05:00:03 +0000 Subject: [PATCH] lib: don't write to cc_config.xml if empty string, because older versions of BOINC choke svn path=/trunk/boinc/; revision=23491 --- checkin_notes | 7 +++++-- lib/cc_config.cpp | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/checkin_notes b/checkin_notes index cfe38d4049..1fea747ca8 100644 --- a/checkin_notes +++ b/checkin_notes @@ -2729,7 +2729,10 @@ Charlie 29 Apr 2011 cc_config.cpp Charlie 1 May 2011 - - lib: initialize data_dir in CONFIG::defaults(). - + - lib: initialize data_dir in CONFIG::defaults(); don't write to + cc_config.xml if empty string, because older versions of BOINC choke. + lib/ cc_config.cpp + +Charlie 1 May 2011 diff --git a/lib/cc_config.cpp b/lib/cc_config.cpp index 0a1c98bd3a..1bd86f5ec9 100644 --- a/lib/cc_config.cpp +++ b/lib/cc_config.cpp @@ -437,12 +437,15 @@ int CONFIG::write(MIOFILE& out, LOG_FLAGS& log_flags) { ); } + // Older versions of BOINC choke on empty data_dir string + if (strlen(data_dir)) { + out.printf(" %s\n", data_dir); + } + out.printf( - " %s\n" " %d\n" " %d\n" " %d\n", - data_dir, disallow_attach, dont_check_file_sizes, dont_contact_ref_site