mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 19:08:58 +00:00
1ce2af1238
If syncOwnership is enabled and the remote uses for example a dockerized Syncthing it can't fetch the ownername and groupname of the local instance. Without this patch this led to an endless cycle of detected changes on the remote and failing re-sync attempts. This patch skips comparing the ownername and groupname if they zare empty on one side. See https://github.com/syncthing/syncthing/issues/9039 for details. ### Testing Proposed by @calmh in https://github.com/syncthing/syncthing/issues/9039#issuecomment-1870584783 and tested locally in my setup, Setup PC 1: - Syncthing is run in Docker as user `root` and has none of the users configured that synchronize their files Setup PC 2: - this PC has all users locally setup - Syncthing runs as `systemd` service as user `syncthing` and has multiple capabilities set to set the correct owner and permissions Setup PC 3: - same as PC 2 Handling: - `PC 1` is send & receive and uses just the `UID` and `GID` identifiers to store the files - `PC 2` and `PC 3` synchronize their files over `PC 1` but not directly to each other Outcome: - `PC 2` and `PC 3` should send and receive their files with the correct ownership and groups from `PC 1` |
||
---|---|---|
.. | ||
mocks | ||
benchmark_test.go | ||
bep_extensions.go | ||
bep.pb.go | ||
bufferpool_test.go | ||
bufferpool.go | ||
common_test.go | ||
compression_test.go | ||
compression.go | ||
conflict_test.go | ||
counting.go | ||
debug.go | ||
deviceid_test.go | ||
deviceid_test.pb.go | ||
deviceid.go | ||
doc.go | ||
encryption_test.go | ||
encryption.go | ||
errors.go | ||
hello_test.go | ||
hello.go | ||
LICENSE | ||
luhn_test.go | ||
luhn.go | ||
metrics.go | ||
mocked_connection_info_test.go | ||
nativemodel_darwin.go | ||
nativemodel_unix.go | ||
nativemodel_windows_test.go | ||
nativemodel_windows.go | ||
protocol_test.go | ||
protocol.go | ||
vector_test.go | ||
vector.go | ||
wireformat.go |