Commit Graph

2740 Commits

Author SHA1 Message Date
Sebastian Messmer
45895d8d4f We don't actually need to calculate or store the ancestor chain unless we're renaming 2022-12-18 16:34:16 +01:00
Sebastian Messmer
222ef46d8d Fix clang tidy warnings 2022-12-18 16:20:26 +01:00
Sebastian Messmer
987b40e138 Fix clang-tidy warning 2022-12-18 15:00:32 +01:00
Sebastian Messmer
2425ce4bc0 Make CryNode::rename() more resilient to corner cases, e.g.
- when trying to move a directory into a subdirectory of itself
- make it into its own ancestor
- allow replacing a directory with another directory, but only if the target directory is empty

Nothing here should have an effect on overall CryFS behavior because fuse already catches those corner cases.
But it's better to handle them correctly. Better safe than sorry.
2022-12-18 14:57:38 +01:00
Sebastian Messmer
cd5ac83b7d Fix another compiler warning 2022-12-18 09:48:15 +01:00
Sebastian Messmer
f5e6b3bc5f Fix compiler warning 2022-12-18 07:26:30 +01:00
Sebastian Messmer
4c10d47cd6 Further simplify getLstatSize 2022-12-18 07:14:13 +01:00
Sebastian Messmer
9ac813270b Simplify getLstatSize 2022-12-18 06:30:53 +01:00
Sebastian Messmer
64c95230ca Delete dead code 2022-12-17 18:41:58 +01:00
Sebastian Messmer
3dd8b53366 Fix a bug in DirEntryList::get() where it would throw an error when it didn't find the entry, but the function signature looks like it would return boost::none.
This bug didn't actually materialize because the only call site is in CryNode.cpp and it would throw an error anyways if it gets boost::none. But still worth fixing to reduce API confusion.
2022-12-17 18:12:24 +01:00
Sebastian Meßmer
934d190534
Installation instructions should say 'python3' instead of 'python' 2022-10-24 14:07:39 -07:00
Sebastian Messmer
1c19488d5e On some systems, when mounting a test file system, the OS asks for /.Trash and /.Trash-1000 and will unmount if the file system returns an error. So let's tell the operating system that those don't exist instead 2022-10-15 15:05:32 -07:00
Sebastian Messmer
48929bb884 Remove CMP0065 mentions from CMakeLists.txt 2022-10-13 00:00:07 -07:00
Sebastian Messmer
6f43639ab5 Merge branch 'feature/CMP0065' into develop 2022-10-12 23:58:56 -07:00
Sebastian Messmer
ac15f42978 Cleanup cmake CMP0065 2022-10-12 18:14:31 -07:00
Sebastian Messmer
1ebee6dd19 Add GCC 10 to CI 2022-10-12 17:46:56 -07:00
Sebastian Messmer
b8a20ee0b0 Fix CI apt-get timeouts by retrying more often 2022-10-12 10:08:34 -07:00
Sebastian Meßmer
04b865b009
Mention cryfs-unmount man page 2022-10-11 21:30:20 -07:00
Sebastian Messmer
16c3a47304 Add man page for cryfs-unmount 2022-10-11 21:10:31 -07:00
Sebastian Messmer
39e792ad78 It's actually clang 7 not gcc 7 that we need to disable on CI, and we only need to disable it on macos. Linux can still run it. 2022-10-11 21:03:10 -07:00
Sebastian Messmer
22151ea155 Re-add CI for Linux GCC 7, only remove GCC 7 CI on macos 2022-10-11 20:48:53 -07:00
Sebastian Messmer
26f95309b1 Remove GCC 7 from CI because the macos CI machines cannot install it anymore 2022-10-11 20:45:53 -07:00
Sebastian Messmer
f1ca6b9f63 Clarify fix statement 2022-10-11 18:56:31 -07:00
D Lamb
3ecbfc31f9
minor: shebang python -> python3 (#439)
Co-authored-by: D Lamb <dlamb.gh@mm.st>
2022-10-11 18:55:24 -07:00
Sebastian Messmer
5adcb1b6fa Mention Apple python fix 2022-10-11 18:54:17 -07:00
Sebastian Messmer
d356e30e8a Mention Apple Silicon build fix 2022-10-11 18:47:27 -07:00
Sebastian Messmer
daea2fb788 Fix building on Apple Silicon Macs (see https://github.com/cryfs/homebrew-tap/issues/10 ) 2022-10-11 18:42:21 -07:00
Bernhard Rosenkraenzer
27515e0116
Fix build with fmt 9.0 (#433)
* Fix build with fmt 9.0

Co-authored-by: Sebastian Meßmer <smessmer@users.noreply.github.com>
2022-07-22 05:13:38 -07:00
jolan78
31c831f984
Update README: macport is now up to date (#430) 2022-05-26 17:10:24 -07:00
Sebastian Meßmer
3f13b63d18
Remove Ubuntu 17.04 mention 2022-02-26 18:40:48 -08:00
Sebastian Messmer
3bd9ad52bf Mention OpenMP fix 2022-02-21 21:20:44 -08:00
Antonio Rojas
c314a3cb70
Fix OpenMP support (#415)
Prevent crypto++ from building the library via an intermediate object target. This is not necessary as we are only building the static library, and breaks passing the build flags that enable openMP support.
2022-02-21 21:18:21 -08:00
Onuralp Sezer
5f908c641c
change unversioned python commandline into versioned python3 commandline (#413)
Signed-off-by: Onuralp SEZER <thunderbirdtr@fedoraproject.org>
2022-01-25 09:45:07 -08:00
Sebastian Messmer
91ba63caf6 Mark 0.11.1 as released 2021-12-23 09:07:17 +01:00
Sebastian Messmer
e1cc1cfada Update to DokanY 1.3.0.1000 2021-12-23 00:50:51 +01:00
Sebastian Messmer
e1eeb9a88c Update to DokanY 1.2.2.1001 2021-12-23 00:44:40 +01:00
Sebastian Messmer
fc906adff9 Fix Subprocess on Windows 2021-12-22 21:18:02 +01:00
Sebastian Messmer
4738c1ff78 Don't run SubprocessTest under TSAN since TSAN deadlocks with atfork handlers 2021-12-13 15:15:16 +01:00
Sebastian Messmer
47de03ccaf Fix subprocess call sites 2021-12-12 13:13:46 +01:00
Sebastian Messmer
1e58f622c0 TODOs 2021-12-12 13:01:04 +01:00
Sebastian Messmer
cef9a9bd53 Process I/O needs to use the async API to avoid deadlocks 2021-12-12 13:00:07 +01:00
Sebastian Messmer
875f55ee41 Disable tests that are broken on windows 2021-12-11 23:06:01 +01:00
Sebastian Messmer
b01f498a58 Flush logs in test cases 2021-12-11 12:03:50 +01:00
Sebastian Messmer
879b131e17 cryfs-unmount correctly unmounts paths that contain spaces 2021-12-10 17:51:07 +01:00
Sebastian Messmer
e27190e05c Update to CryptoPP 8.6. This fixes a rare bug where CryptoPP 8.5 encrypts data wrongly, see https://github.com/weidai11/cryptopp/issues/1069 2021-12-09 12:20:41 +01:00
Sebastian Messmer
910c2e1f75 Fix building of the range-v3 dependency. The conan remote URL for this dependency changed and we have to use the new URL. This broke the homebrew build as well. 2021-12-09 12:11:16 +01:00
Sebastian Messmer
bdfc528c70 Clear conan cache in CI 2021-12-09 12:10:23 +01:00
Benjamin Calisto
b87822226a
Add homebrew-core installation instruction (#404)
Co-authored-by: KBeDevel <be.calisto@protonmail.com>
2021-12-08 06:26:12 -08:00
Sebastian Meßmer
6ab755c522
Remove CircleCI / Appveyor badges since we're only using GithubActions now 2021-09-01 18:51:21 -07:00
a1346054
fdaa9270a0
Tiny cleanup (#397)
* use license file from gnu.org

They changed http link to https.

File downloaded from:
https://www.gnu.org/licenses/lgpl-3.0.txt

* invoke bash using /usr/bin/env

* fix shellcheck warnings

* fix spelling

* trim excess whitespace
2021-09-01 18:44:21 -07:00