diff options
author | Marc Laukien <marc@zeroc.com> | 2004-11-29 21:21:18 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-11-29 21:21:18 +0000 |
commit | 69b84c80da5a4f8bc48777459b4c46741dc80544 (patch) | |
tree | 21860af8f56b9a054646c470a4aea0b0debbffb8 /cpp/src/IcePatch2/FileServerI.cpp | |
parent | fixes (diff) | |
download | ice-69b84c80da5a4f8bc48777459b4c46741dc80544.tar.bz2 ice-69b84c80da5a4f8bc48777459b4c46741dc80544.tar.xz ice-69b84c80da5a4f8bc48777459b4c46741dc80544.zip |
fixes
Diffstat (limited to 'cpp/src/IcePatch2/FileServerI.cpp')
-rw-r--r-- | cpp/src/IcePatch2/FileServerI.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/IcePatch2/FileServerI.cpp b/cpp/src/IcePatch2/FileServerI.cpp index cc4a8c1f6ab..519e00477d7 100644 --- a/cpp/src/IcePatch2/FileServerI.cpp +++ b/cpp/src/IcePatch2/FileServerI.cpp @@ -22,7 +22,8 @@ using namespace std; using namespace Ice; using namespace IcePatch2; -IcePatch2::FileServerI::FileServerI(const FileInfoSeq& infoSeq) +IcePatch2::FileServerI::FileServerI(const std::string& dataDir, const FileInfoSeq& infoSeq) : + _dataDir(dataDir) { FileTree0& tree0 = const_cast<FileTree0&>(_tree0); getFileTree0(infoSeq, tree0); @@ -61,7 +62,7 @@ IcePatch2::FileServerI::getChecksum(const Current&) const ByteSeq IcePatch2::FileServerI::getFileCompressed(const string& pa, Int pos, Int num, const Current&) const { - string path = normalize(pa); + string path = normalize(_dataDir + '/' + pa); path += ".bz2"; if(num <= 0 || pos < 0) |