summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/components.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/configmgr/source/components.cxx b/configmgr/source/components.cxx
index 5354763b0c95..dc4374d60ec6 100644
--- a/configmgr/source/components.cxx
+++ b/configmgr/source/components.cxx
@@ -705,6 +705,10 @@ void Components::parseFiles(
parseFileLeniently(
parseFile, stat.getFileURL(), layer, nullptr, nullptr, nullptr);
} catch (css::container::NoSuchElementException & e) {
+ if (stat.getFileType() == osl::FileStatus::Link) {
+ SAL_WARN("configmgr", "dangling link <" << stat.getFileURL() << ">");
+ continue;
+ }
throw css::uno::RuntimeException(
"stat'ed file does not exist: " + e.Message);
}
@@ -781,6 +785,10 @@ void Components::parseXcdFiles(int layer, OUString const & url) {
stat.getFileURL(),
new XcdParser(layer, processedDeps, data_));
} catch (css::container::NoSuchElementException & e) {
+ if (stat.getFileType() == osl::FileStatus::Link) {
+ SAL_WARN("configmgr", "dangling link <" << stat.getFileURL() << ">");
+ continue;
+ }
throw css::uno::RuntimeException(
"stat'ed file does not exist: " + e.Message);
}