libreoffice-online/common
Ashod Nakashian 2bb3ebb86e wsd: don't trust modified time when comparing files
We shouldn't assume two files are different just
because one was touched recently. This is an issue
when we think systemplate is out of date when it isn't.

Since we only do this file comparison on (very) small
/etc files, it's simply safer to compare the files
when their sizes are the same, instead of assuming
that timestamps are indicative of being outdated.

Ironically, by comparing the contents we spawn
jails faster when there is nothing to update
and we can safely use bind-mount.

Change-Id: Idb2088fcb52b493c91bef92890750f1dfcfbcc25
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-12-15 21:00:28 +00:00
..
Authorization.cpp wsd: avoid the using keyword and use C++ size_t 2020-11-15 15:41:41 -05:00
Authorization.hpp fix license headers 2020-10-01 11:56:43 +02:00
Clipboard.hpp wsd: avoid the using keyword and use C++ size_t 2020-11-15 15:41:41 -05:00
Common.hpp fix license headers 2020-10-01 11:56:43 +02:00
Crypto.cpp wsd: avoid the using keyword and use C++ size_t 2020-11-15 15:41:41 -05:00
Crypto.hpp fix license headers 2020-10-01 11:56:43 +02:00
FileUtil.cpp wsd: avoid single-character strings 2020-12-09 17:19:58 +01:00
FileUtil.hpp wsd: don't trust modified time when comparing files 2020-12-15 21:00:28 +00:00
JailUtil.cpp wsd: log something sensible when a dynamic file is missing 2020-11-29 19:27:23 -05:00
JailUtil.hpp wsd: cleanup temp incoming directories after use 2020-11-23 21:29:34 -05:00
JsonUtil.hpp wsd: avoid single-character strings 2020-12-09 17:19:58 +01:00
Log.cpp wsd: specialize thread ID serialization 2020-11-21 19:49:46 -05:00
Log.hpp wsd: cosmetic and consts 2020-12-09 17:19:58 +01:00
LOOLWebSocket.hpp wsd: avoid single-character strings 2020-12-09 17:19:58 +01:00
Message.hpp fix license headers 2020-10-01 11:56:43 +02:00
MessageQueue.cpp fix license headers 2020-10-01 11:56:43 +02:00
MessageQueue.hpp Remove obsolete locking and conditions around MessageQueue 2020-11-24 12:32:45 +01:00
MobileApp.cpp fix license headers 2020-10-01 11:56:43 +02:00
MobileApp.hpp fix license headers 2020-10-01 11:56:43 +02:00
Png.hpp wsd: log: overload chrono duration to simplify logging 2020-12-08 09:26:41 +00:00
Protocol.cpp fix license headers 2020-10-01 11:56:43 +02:00
Protocol.hpp fix license headers 2020-10-01 11:56:43 +02:00
Rectangle.hpp fix license headers 2020-10-01 11:56:43 +02:00
RenderTiles.hpp wsd: log: overload chrono duration to simplify logging 2020-12-08 09:26:41 +00:00
Seccomp.cpp Replace all __linux in CPP conditions with __linux__. 2020-11-17 09:21:45 +00:00
Seccomp.hpp fix license headers 2020-10-01 11:56:43 +02:00
security.h Compare string the c++ way + clarify the message for the user. 2020-11-30 11:24:31 +01:00
Session.cpp wsd: misc cleanup 2020-11-22 22:26:36 -05:00
Session.hpp wsd: test: add Buffer test and minor cosmetics 2020-11-29 19:27:23 -05:00
SigUtil.cpp fix license headers 2020-10-01 11:56:43 +02:00
SigUtil.hpp fix license headers 2020-10-01 11:56:43 +02:00
SpookyV2.cpp
SpookyV2.h Use #pragma once 2020-04-18 15:00:18 +02:00
StringVector.cpp fix license headers 2020-10-01 11:56:43 +02:00
StringVector.hpp Fix typos 2020-10-07 12:51:08 +02:00
Unit.cpp fix license headers 2020-10-01 11:56:43 +02:00
Unit.hpp wsd: avoid the using keyword and use C++ size_t 2020-11-15 15:41:41 -05:00
UnitHTTP.hpp fix license headers 2020-10-01 11:56:43 +02:00
Util.cpp fuzzer-clientsession 2020-11-30 10:17:43 +01:00
Util.hpp fuzzer-clientsession 2020-11-30 10:17:43 +01:00