Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scripts/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,12 @@ static_staleness_probe() {
# comparison can miss the change
cat "$file" > "$probe"
printf 'httparena-staleness-probe-%s\n' "$$" >> "$probe"
# mktemp creates 0600, and mv carries the source mode onto the destination.
# Left alone that makes the replacement unreadable to any container running
# as non-root, which reads back as "the server ignored the disk" -- a false
# failure for exactly the entries doing the right thing. Carry the mode of
# the file being replaced instead.
chmod --reference="$backup" "$probe"
original_sum="$(sha256sum "$backup" | cut -d' ' -f1)"
probe_sum="$(sha256sum "$probe" | cut -d' ' -f1)"

Expand Down