Page MenuHomeFreeBSD

install: Fix two bugs in stdin code
ClosedPublic

Authored by des on Mon, Aug 24, 2:00 PM.
Tags
None
Referenced Files
F168712575: D59144.diff
Sat, Aug 29, 6:44 PM
F168622737: D59144.diff
Sat, Aug 29, 7:37 AM
Unknown Object (File)
Fri, Aug 28, 5:02 PM
Unknown Object (File)
Fri, Aug 28, 12:32 PM
Unknown Object (File)
Fri, Aug 28, 12:32 PM
Unknown Object (File)
Thu, Aug 27, 3:24 PM
Unknown Object (File)
Thu, Aug 27, 3:21 PM
Unknown Object (File)
Wed, Aug 26, 12:36 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 76160
Build 73043: 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.