summaryrefslogtreecommitdiff
path: root/cpp/src/IcePatch/FileLocator.cpp
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2002-04-16 23:45:16 +0000
committerMarc Laukien <marc@zeroc.com>2002-04-16 23:45:16 +0000
commitcb721b45d761ccb7fa3bb873e3d567dd665b1f9f (patch)
tree75bd19e8d32751ff178093f47b4ce87e83d4b6d0 /cpp/src/IcePatch/FileLocator.cpp
parentalign with C++ - fixes for the thread pool (diff)
downloadice-cb721b45d761ccb7fa3bb873e3d567dd665b1f9f.tar.bz2
ice-cb721b45d761ccb7fa3bb873e3d567dd665b1f9f.tar.xz
ice-cb721b45d761ccb7fa3bb873e3d567dd665b1f9f.zip
IcePatch improvements; Ice.PrintAdapterReady timing fix
Diffstat (limited to 'cpp/src/IcePatch/FileLocator.cpp')
-rw-r--r--cpp/src/IcePatch/FileLocator.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/IcePatch/FileLocator.cpp b/cpp/src/IcePatch/FileLocator.cpp
index cdd001cd84d..bcf0a46cab7 100644
--- a/cpp/src/IcePatch/FileLocator.cpp
+++ b/cpp/src/IcePatch/FileLocator.cpp
@@ -30,7 +30,7 @@ IcePatch::FileLocator::locate(const ObjectAdapterPtr& adapter, const Current& cu
//
string path = identityToPath(current.identity);
- if (path.empty())
+ if (path.empty()) // Empty paths are not permissible.
{
return 0;
}
@@ -50,6 +50,11 @@ IcePatch::FileLocator::locate(const ObjectAdapterPtr& adapter, const Current& cu
return 0;
}
+ if (ignoreSuffix(path)) // Some suffixes are reserved.
+ {
+ return 0;
+ }
+
FileInfo info;
try
{