From 0423d6c4d38b598b4103392a73039b2e578133e8 Mon Sep 17 00:00:00 2001 From: Karl Chen Date: Fri, 23 Jul 2004 20:48:49 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=3947 --- checkin_notes | 12 ++++++++---- tools/backend_lib.C | 4 ++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/checkin_notes b/checkin_notes index 9e48f86de1..66defbef24 100755 --- a/checkin_notes +++ b/checkin_notes @@ -15474,10 +15474,6 @@ Eric K. July 20 2004 html/inc/cache.inc - - - - Rom July 19 2004 - Fix a bug where during the benchmarking process all the active tasks would die off. @@ -15664,3 +15660,11 @@ Eric K. July 22 2004 top_hosts.php top_teams.php top_users.php + +Karl 2004-07-23 + - added argument check to create_work process_wu_template if + isn't found (otherwise it just silently uses the previous command-line + argument as a file_ref!) + + tools/ + backend_lib.C diff --git a/tools/backend_lib.C b/tools/backend_lib.C index 8ee153c9b3..0e8444e5c7 100644 --- a/tools/backend_lib.C +++ b/tools/backend_lib.C @@ -132,6 +132,10 @@ static int process_wu_template( } else if (parse_str(p, "", open_name, sizeof(open_name))) { continue; } else if (match_tag(p, "")) { + if (file_number < 0) { + fprintf(stderr, "No file number found\n"); + return ERR_XML_PARSE; + } sprintf(buf, "\n" " %s\n"