mirror of https://github.com/BOINC/boinc.git
My motto today is 'third time lucky'
svn path=/trunk/boinc/; revision=4989
This commit is contained in:
parent
2aa7f70f8c
commit
f39ef7a1c1
|
@ -46,7 +46,7 @@ SCHED_CONFIG config;
|
||||||
// always returns 0 if the last argument (eg, missing below) argument is set to
|
// always returns 0 if the last argument (eg, missing below) argument is set to
|
||||||
// false.
|
// false.
|
||||||
//
|
//
|
||||||
int get_file_path(char *buf, char* upload_dir, int fanout, bool newhash, char* path) {
|
int get_file_path(char *buf, char* upload_dir, int fanout, char* path) {
|
||||||
|
|
||||||
dir_hier_path(buf, upload_dir, fanout, true, path);
|
dir_hier_path(buf, upload_dir, fanout, true, path);
|
||||||
if (boinc_file_exists(path))
|
if (boinc_file_exists(path))
|
||||||
|
@ -81,7 +81,7 @@ int wu_delete_files(WORKUNIT& wu) {
|
||||||
no_delete = true;
|
no_delete = true;
|
||||||
} else if (match_tag(p, "</file_info>")) {
|
} else if (match_tag(p, "</file_info>")) {
|
||||||
if (!no_delete) {
|
if (!no_delete) {
|
||||||
retval=get_file_path(filename, config.download_dir, config.uldl_dir_fanout, true,
|
retval=get_file_path(filename, config.download_dir, config.uldl_dir_fanout,
|
||||||
pathname
|
pathname
|
||||||
);
|
);
|
||||||
if (retval) {
|
if (retval) {
|
||||||
|
@ -120,7 +120,7 @@ int result_delete_files(RESULT& result) {
|
||||||
no_delete = true;
|
no_delete = true;
|
||||||
} else if (match_tag(p, "</file_info>")) {
|
} else if (match_tag(p, "</file_info>")) {
|
||||||
if (!no_delete) {
|
if (!no_delete) {
|
||||||
retval=get_file_path(filename, config.upload_dir, config.uldl_dir_fanout, true,
|
retval=get_file_path(filename, config.upload_dir, config.uldl_dir_fanout,
|
||||||
pathname
|
pathname
|
||||||
);
|
);
|
||||||
if (retval) {
|
if (retval) {
|
||||||
|
|
Loading…
Reference in New Issue