Page MenuHomeFreeBSD

Handle a bug with install(1) -C and /dev/null
ClosedPublic

Authored by brd on Jul 27 2018, 10:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 1, 12:00 AM
Unknown Object (File)
Nov 29 2025, 1:04 AM
Unknown Object (File)
Nov 28 2025, 2:07 AM
Unknown Object (File)
Nov 27 2025, 8:37 AM
Unknown Object (File)
Nov 26 2025, 6:15 PM
Unknown Object (File)
Nov 21 2025, 4:09 AM
Unknown Object (File)
Nov 20 2025, 11:05 PM
Unknown Object (File)
Nov 20 2025, 11:01 PM

Details

Summary

Apparently when the file already exists, the /dev/null handling in install(1)
is not sufficient. So this works around it, and does not use -C when /dev/null
is the source.

Diff Detail

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

Event Timeline

This revision is now accepted and ready to land.Jul 27 2018, 10:39 PM

make distribution no longer crashes with this.

This revision was automatically updated to reflect the committed changes.

This seems like a bug that should be fixed in install(1), not here. It's unclear from the description what the actual bug is.