Skip to content

glocalfileoutputstream: Fix ETag check when replacing through a symlink

Since commit 87e19535, the ETag check when writing out a file through a symlink (following the symlink) has been incorrectly using the ETag value of the symlink, rather than the target file. This is incorrect because the ETag should represent the file content, not its metadata or links to it.

Fix that, and add a unit test.

Signed-off-by: Philip Withnall pwithnall@endlessos.org

Fixes: #2417 (closed)

Merge request reports