Page MenuHomeFreeBSD

install: Fix two bugs in stdin code
ClosedPublic

Authored by des on Aug 24 2026, 2:00 PM.
Tags
None
Referenced Files
F173207149: D59144.id185092.diff
Thu, Sep 24, 7:29 AM
Unknown Object (File)
Wed, Sep 23, 2:23 AM
Unknown Object (File)
Tue, Sep 22, 6:00 AM
Unknown Object (File)
Mon, Sep 21, 9:07 PM
Unknown Object (File)
Mon, Sep 21, 2:58 PM
Unknown Object (File)
Mon, Sep 21, 2:44 PM
Unknown Object (File)
Mon, Sep 21, 2:13 PM
Unknown Object (File)
Sat, Sep 19, 2:51 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 76050
Build 72933: arc lint + arc unit

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.Wed, Aug 26, 3:01 PM
This revision was automatically updated to reflect the committed changes.