Page MenuHomeFreeBSD

etcupdate: preserve the metadata of the destination file
ClosedPublic

Authored by vangyzen on Sep 7 2016, 6:00 PM.
Tags
None
Referenced Files
F109345834: D7817.diff
Mon, Feb 3, 8:53 PM
Unknown Object (File)
Sat, Jan 25, 11:55 AM
Unknown Object (File)
Thu, Jan 16, 1:51 AM
Unknown Object (File)
Nov 21 2024, 3:13 PM
Unknown Object (File)
Nov 21 2024, 1:11 PM
Unknown Object (File)
Nov 18 2024, 4:00 PM
Unknown Object (File)
Nov 9 2024, 6:50 PM
Unknown Object (File)
Nov 1 2024, 6:58 PM
Subscribers

Details

Summary

When using diff3 to perform a three-way merge, etcupdate lost the destination
file's metadata. The metadata from the temporary file were used instead.
This was unpleasant for rc.d scripts, which require execute permission.
Use "cat >" to overwrite the destination file's contents while preserving its
metadata.

Test Plan

All kyua tests still pass, although they don't test this case.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

vangyzen retitled this revision from to etcupdate: preserve the metadata of the destination file.
vangyzen updated this object.
vangyzen edited the test plan for this revision. (Show Details)
vangyzen added reviewers: jhb, bapt.
bapt edited edge metadata.
This revision is now accepted and ready to land.Sep 8 2016, 3:49 PM
This revision was automatically updated to reflect the committed changes.