diff options
author | Michael Meeks <michael.meeks@suse.com> | 2011-12-07 14:38:16 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2011-12-07 14:38:16 +0000 |
commit | b8c7548527f5fc14fe8fcbe74a749c7e3c10d385 (patch) | |
tree | 61cc8aa5b09993f349905cc278e11bd665ddd84d /cppuhelper/source/bootstrap.cxx | |
parent | ca23cdbf90b97f141fdcf4fbc237e8f945cdd1e6 (diff) |
ignore backup files in services/ directory to avoid debugging grief
Diffstat (limited to 'cppuhelper/source/bootstrap.cxx')
-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, |