Page MenuHomeFreeBSD

install: Fix two bugs in stdin code
ClosedPublic

Authored by des on Aug 24 2026, 2:00 PM.
Tags
None
Referenced Files
F175861583: D59144.id184885.diff
Tue, Oct 13, 11:48 PM
Unknown Object (File)
Tue, Oct 13, 9:41 AM
Unknown Object (File)
Mon, Oct 12, 11:58 PM
Unknown Object (File)
Mon, Oct 12, 10:04 AM
Unknown Object (File)
Mon, Oct 12, 9:42 AM
Unknown Object (File)
Mon, Oct 12, 5:36 AM
Unknown Object (File)
Sat, Oct 10, 9:00 PM
Unknown Object (File)
Thu, Oct 8, 8:31 PM
Subscribers

Details

Summary
  • Fix case where the source is - and the target exists.
  • Only call chflags() (to remove flags that might prevent us from replacing an existing target) in the exists case; otherwise, to_sb.st_flags is uninitialized.
  • Rename the source file in the stdin test case.
  • Extend null and stdin test cases to cover the case where the target already exists.

PR: 297681
MFC after: 1 week
Fixes: d34870708db9 ("install: Allow installing stdin")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

des requested review of this revision.Aug 24 2026, 2:00 PM
des edited the summary of this revision. (Show Details)

update

This revision is now accepted and ready to land.Aug 26 2026, 3:01 PM
This revision was automatically updated to reflect the committed changes.