From ef2e14ed2a9b6541d4760b1a936f746c93dbc661 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Thu, 5 Sep 2019 15:43:15 -0700 Subject: [PATCH] client: if physical name of download file contains /, create subdirs --- client/file_xfer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/file_xfer.cpp b/client/file_xfer.cpp index 08b1a85560..0c72c70feb 100644 --- a/client/file_xfer.cpp +++ b/client/file_xfer.cpp @@ -61,6 +61,12 @@ FILE_XFER::~FILE_XFER() { int FILE_XFER::init_download(FILE_INFO& file_info) { is_upload = false; fip = &file_info; + + // create subdirs of project dir if needed + // + int retval = boinc_make_dirs(fip->project->project_dir(), fip->name); + if (retval) return retval; + get_pathname(fip, pathname, sizeof(pathname)); if (fip->download_gzipped) { safe_strcat(pathname, ".gzt");