kit/ForKit.cpp | 4 ++++ wsd/LOOLWSD.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-)
New commits: commit ae37657345502d13a64b25acf292b1447b85ed6b Author: Jan Holesovsky <ke...@collabora.com> Date: Thu Aug 10 11:11:05 2017 +0200 Warn more about missing capabilities, and advise what to do on SLES11. Change-Id: I93587db6fa32c1c505877c20857799be71ee162f Reviewed-on: https://gerrit.libreoffice.org/40954 Reviewed-by: Andras Timar <andras.ti...@collabora.com> Tested-by: Andras Timar <andras.ti...@collabora.com> diff --git a/kit/ForKit.cpp b/kit/ForKit.cpp index ed3d2f2a..05fdf8a0 100644 --- a/kit/ForKit.cpp +++ b/kit/ForKit.cpp @@ -500,7 +500,11 @@ int main(int argc, char** argv) LOG_INF("Note: LD_BIND_NOW is not set."); if (!NoCapsForKit && !haveCorrectCapabilities()) + { + std::cerr << "FATAL: Capabilities are not set for the loolforkit program." << std::endl; + std::cerr << "If you are on SLES11, please set 'file_caps=1' as kernel boot option." << std::endl << std::endl; return Application::EXIT_SOFTWARE; + } // Initialize LoKit if (!globalPreinit(loTemplate)) diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp index 643b14bc..cb74fda3 100644 --- a/wsd/LOOLWSD.cpp +++ b/wsd/LOOLWSD.cpp @@ -2561,7 +2561,7 @@ int LOOLWSD::innerMain() { const auto msg = "Failed to fork child processes."; LOG_FTL(msg); - std::cerr << msg << std::endl; + std::cerr << "FATAL: " << msg << std::endl; throw std::runtime_error(msg); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits