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
F149392991: D16476.id.diff
Tue, Mar 24, 4:00 AM
F149360773: D16476.id45931.diff
Mon, Mar 23, 11:50 PM
Unknown Object (File)
Sun, Mar 22, 11:39 PM
Unknown Object (File)
Sun, Mar 22, 6:54 AM
Unknown Object (File)
Wed, Mar 18, 12:57 AM
Unknown Object (File)
Tue, Mar 17, 6:06 PM
Unknown Object (File)
Tue, Mar 17, 3:09 PM
Unknown Object (File)
Tue, Mar 17, 4:36 AM

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.