cppuhelper/source/bootstrap.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 7713d3378d8aa7da1855adbeb885ac2c3b79a623 Author: Michael Meeks <michael.me...@suse.com> Date: Wed Dec 7 14:38:16 2011 +0000 ignore backup files in services/ directory to avoid debugging grief diff --git a/cppuhelper/source/bootstrap.cxx b/cppuhelper/source/bootstrap.cxx index 8217ee7..399af07 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, _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits