[Libreoffice-commits] online.git: loolwsd/LOOLWSD.cpp
Henry Castro
hcastro at collabora.com
Tue Feb 16 21:04:39 UTC 2016
loolwsd/LOOLWSD.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 3ad641c7bd9a05cbb08b35cb3656adf59cd8b8b6
Author: Henry Castro <hcastro at collabora.com>
Date: Tue Feb 16 17:04:21 2016 -0400
loolwsd: check if the pipe path exists
diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp
index 1f1480e..ef37ab5 100644
--- a/loolwsd/LOOLWSD.cpp
+++ b/loolwsd/LOOLWSD.cpp
@@ -934,7 +934,7 @@ int LOOLWSD::main(const std::vector<std::string>& /*args*/)
}
const Path pipePath = Path::forDirectory(ChildRoot + Path::separator() + FIFO_PATH);
- if (!File(pipePath).createDirectory())
+ if (!File(pipePath).exists() && !File(pipePath).createDirectory())
{
Log::error("Error: Failed to create pipe directory [" + pipePath.toString() + "].");
return Application::EXIT_SOFTWARE;
More information about the Libreoffice-commits
mailing list