From 154b132c24a2f95ff7db2b9f0091e28a10775f3d Mon Sep 17 00:00:00 2001 From: Lana Alber Date: Mon, 20 Sep 2004 23:03:47 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=4211 --- checkin_notes | 4 ++++ tools/backend_lib.C | 11 +++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/checkin_notes b/checkin_notes index 95b30f44a3..bedd86a7e6 100755 --- a/checkin_notes +++ b/checkin_notes @@ -17482,3 +17482,7 @@ David 20 Sept 2004 user/ edit_forum_preferences_action.php show_user.php + +Lana 20 Sept 2004 + - Fixed create_work bug. Copy input text files to the download directories tools/ + backend_lib.C diff --git a/tools/backend_lib.C b/tools/backend_lib.C index 8a51ce6b06..0423e836d3 100644 --- a/tools/backend_lib.C +++ b/tools/backend_lib.C @@ -30,6 +30,7 @@ #include "md5_file.h" #include "parse.h" #include "util.h" +#include "filesys.h" #include "backend_lib.h" @@ -69,7 +70,7 @@ static int process_wu_template( SCHED_CONFIG& config ) { char* p; - char buf[LARGE_BLOB_SIZE], md5[33], path[256], url[256]; + char buf[LARGE_BLOB_SIZE], md5[33], path[256], url[256], top_download_path[256]; char out[LARGE_BLOB_SIZE]; int retval, file_number; double nbytes; @@ -93,8 +94,14 @@ static int process_wu_template( } dir_hier_path( infiles[file_number], config.download_dir, - config.uldl_dir_fanout, path + config.uldl_dir_fanout, path, true ); + if ( ! boinc_file_exists(path) ) { + sprintf(top_download_path,"%s/%s",config.download_dir, + infiles[file_number]); + boinc_copy(top_download_path,path); + } + retval = md5_file(path, md5, nbytes); if (retval) { fprintf(stderr, "process_wu_template: md5_file %d\n", retval);