summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2013-01-10 14:42:41 -0500
committerOz Linden <oz@lindenlab.com>2013-01-10 14:42:41 -0500
commitf3b362a6d4888a47fb59617447a0a59995b39d58 (patch)
tree3966cb9c7b0bc9139c3812324814a2e29abaeec9 /indra
parent9c94cf4e5925937ed20ecb29015cf81b521a7213 (diff)
parentbc522d6ba2aaeffff451533dabf2757c6e641ce1 (diff)
merge changes for DRTVWR-279
Diffstat (limited to 'indra')
-rw-r--r--indra/llmessage/llxfermanager.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/indra/llmessage/llxfermanager.cpp b/indra/llmessage/llxfermanager.cpp
index b9cddc8e45..00b9d81611 100644
--- a/indra/llmessage/llxfermanager.cpp
+++ b/indra/llmessage/llxfermanager.cpp
@@ -886,8 +886,17 @@ void LLXferManager::processFileRequest (LLMessageSystem *mesgsys, void ** /*user
return;
}
-
- std::string expanded_filename = gDirUtilp->getExpandedFilename( local_path, local_filename );
+ // If we want to use a special path (e.g. LL_PATH_CACHE), we want to make sure we create the
+ // proper expanded filename.
+ std::string expanded_filename;
+ if (local_path != LL_PATH_NONE)
+ {
+ expanded_filename = gDirUtilp->getExpandedFilename( local_path, local_filename );
+ }
+ else
+ {
+ expanded_filename = local_filename;
+ }
llinfos << "starting file transfer: " << expanded_filename << " to " << mesgsys->getSender() << llendl;
BOOL delete_local_on_completion = FALSE;