Page MenuHomeFreeBSD

install: Fix two bugs in stdin code
ClosedPublic

Authored by des on Mon, Aug 24, 2:00 PM.
Tags
None
Referenced Files
F172601576: D59144.id185092.diff
Sat, Sep 19, 2:51 PM
Unknown Object (File)
Thu, Sep 17, 6:48 AM
Unknown Object (File)
Wed, Sep 16, 6:46 AM
Unknown Object (File)
Tue, Sep 15, 10:46 PM
Unknown Object (File)
Tue, Sep 15, 9:57 PM
Unknown Object (File)
Tue, Sep 15, 9:26 PM
Unknown Object (File)
Tue, Sep 15, 4:12 AM
Unknown Object (File)
Tue, Sep 15, 4:06 AM
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.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.