diff options
-rw-r--r-- | cppuhelper/source/bootstrap.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cppuhelper/source/bootstrap.cxx b/cppuhelper/source/bootstrap.cxx index 8217ee7e9126..399af07a5b9b 100644 --- a/cppuhelper/source/bootstrap.cxx +++ b/cppuhelper/source/bootstrap.cxx @@ -289,6 +289,13 @@ Reference< registry::XSimpleRegistry > readRdbDirectory( url), css::uno::Reference< css::uno::XInterface >()); } + rtl::OUString aName = stat.getFileName(); + + // Ignore backup files - to allow people to edit their + // services/ without extremely confusing behaviour + if (aName.toChar() == '.' || aName.endsWithAsciiL("~", 1)) + continue; + if (stat.getFileType() != osl::FileStatus::Directory) { //TODO: symlinks last = readRdbFile( stat.getFileURL(), fatalErrors, last, simpleRegistryFactory, |