diff options
author | Marc Laukien <marc@zeroc.com> | 2004-11-29 21:00:15 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2004-11-29 21:00:15 +0000 |
commit | 96dd240e1ac93a97518688898a794374cb221e39 (patch) | |
tree | e56dba9ffc763ce9d0fdc23b53db514cae434cd6 /cpp/src/IcePatch2/Server.cpp | |
parent | fixes (diff) | |
download | ice-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.cpp | 9 |
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) { |