diff options
author | Marc Laukien <marc@zeroc.com> | 2002-04-16 23:45:16 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-04-16 23:45:16 +0000 |
commit | cb721b45d761ccb7fa3bb873e3d567dd665b1f9f (patch) | |
tree | 75bd19e8d32751ff178093f47b4ce87e83d4b6d0 /cpp/src/IcePatch/Client.cpp | |
parent | align with C++ - fixes for the thread pool (diff) | |
download | ice-cb721b45d761ccb7fa3bb873e3d567dd665b1f9f.tar.bz2 ice-cb721b45d761ccb7fa3bb873e3d567dd665b1f9f.tar.xz ice-cb721b45d761ccb7fa3bb873e3d567dd665b1f9f.zip |
IcePatch improvements; Ice.PrintAdapterReady timing fix
Diffstat (limited to 'cpp/src/IcePatch/Client.cpp')
-rw-r--r-- | cpp/src/IcePatch/Client.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/cpp/src/IcePatch/Client.cpp b/cpp/src/IcePatch/Client.cpp index f5ea8c0602c..ac3d894ce03 100644 --- a/cpp/src/IcePatch/Client.cpp +++ b/cpp/src/IcePatch/Client.cpp @@ -89,7 +89,14 @@ IcePatch::Client::run(int argc, char* argv[]) string directory = properties->getProperty(directoryProperty); if (!directory.empty()) { - changeDirectory(directory); +#ifdef _WIN32 + if (_chdir(directory.c_str()) == -1) +#else + if (chdir(directory.c_str()) == -1) +#endif + { + cerr << appName() << ": cannot change to directory `" << directory << "': " << strerror(errno) << endl; + } } // @@ -175,11 +182,6 @@ public: void IcePatch::Client::patch(const FileDescSeq& fileDescSeq, const string& indent) { - if (fileDescSeq.empty()) - { - return; - } - for (unsigned int i = 0; i < fileDescSeq.size(); ++i) { string path; |