summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch2/Server.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2004-11-29 21:00:15 +0000
committerMarc Laukien <marc@zeroc.com>2004-11-29 21:00:15 +0000
commit96dd240e1ac93a97518688898a794374cb221e39 (patch)
treee56dba9ffc763ce9d0fdc23b53db514cae434cd6 /cpp/src/IcePatch2/Server.cpp
parentfixes (diff)
downloadice-96dd240e1ac93a97518688898a794374cb221e39.tar.bz2
ice-96dd240e1ac93a97518688898a794374cb221e39.tar.xz
ice-96dd240e1ac93a97518688898a794374cb221e39.zip
fixes
Diffstat (limited to 'cpp/src/IcePatch2/Server.cpp')
-rw-r--r--cpp/src/IcePatch2/Server.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/cpp/src/IcePatch2/Server.cpp b/cpp/src/IcePatch2/Server.cpp
index 8590dcca685..c6a621b0351 100644
--- a/cpp/src/IcePatch2/Server.cpp
+++ b/cpp/src/IcePatch2/Server.cpp
@@ -112,12 +112,7 @@ IcePatch2::PatcherService::start(int argc, char* argv[])
}
dataDir = normalize(string(cwd) + '/' + dataDir);
-
- if(chdir(dataDir.c_str()) == -1)
- {
- throw "cannot change directory to `" + dataDir + "': " + strerror(errno);
- }
-
+
loadFileInfoSeq(dataDir, infoSeq);
}
catch(const string& ex)
@@ -148,7 +143,7 @@ IcePatch2::PatcherService::start(int argc, char* argv[])
const char* idProperty = "IcePatch2.Identity";
Identity id = stringToIdentity(properties->getPropertyWithDefault(idProperty, "IcePatch2/server"));
- adapter->add(new FileServerI(infoSeq), id);
+ adapter->add(new FileServerI(dataDir, infoSeq), id);
if(adminAdapter)
{