Page MenuHomeFreeBSD

install: Fix two bugs in stdin code
ClosedPublic

Authored by des on Mon, Aug 24, 2:00 PM.
Tags
None
Referenced Files
F169860606: D59144.id185092.diff
Wed, Sep 2, 7:28 PM
F169819229: D59144.id184885.diff
Wed, Sep 2, 4:10 PM
F169797819: D59144.id185092.diff
Wed, Sep 2, 2:40 PM
F169786052: D59144.id185092.diff
Wed, Sep 2, 1:44 PM
F169776030: D59144.id184886.diff
Wed, Sep 2, 1:04 PM
Unknown Object (File)
Wed, Sep 2, 11:14 AM
Unknown Object (File)
Wed, Sep 2, 10:25 AM
Unknown Object (File)
Tue, Sep 1, 10:20 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.Mon, Aug 24, 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.