Page MenuHomeFreeBSD

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

Authored by brd on Jul 27 2018, 10:05 PM.



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

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

brd created this revision.Jul 27 2018, 10:05 PM
allanjude accepted this revision.Jul 27 2018, 10:39 PM

Approved By: allanjude

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.
will added a comment.Jul 28 2018, 3:15 PM

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.