Page MenuHomeFreeBSD

bsdinstall.8 tar command order of argument breakage
ClosedPublic

Authored by debdrup on Mar 23 2022, 8:22 PM.
Referenced Files
Unknown Object (File)
Feb 23 2024, 5:17 PM
Unknown Object (File)
Feb 3 2024, 6:50 PM
Unknown Object (File)
Jan 13 2024, 11:28 AM
Unknown Object (File)
Dec 23 2023, 2:22 AM
Unknown Object (File)
Dec 13 2023, 3:58 AM
Unknown Object (File)
Nov 1 2023, 10:14 PM
Unknown Object (File)
Sep 19 2023, 2:09 PM
Unknown Object (File)
Sep 13 2023, 9:51 AM
Subscribers

Details

Summary

The previous command was:

tar xvf -C release-media FreeBSD.iso

This order of arguments does not work because tar thinks the file is named -C, which does not exist and reports: tar: Error opening archive: Failed to open '-C'
Changing the command to:

tar -C release-media -xvf FreeBSD.iso
Test Plan

Test out both commands, notice that the first command fails.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Mistakenly tagged dteske@ after misreading MAINTAINERS.

debdrup added a subscriber: debdrup.

mdoc syntax hasn't really changed and .Dd has been bumped, so this can be commited and pushed.

This revision is now accepted and ready to land.Mar 23 2022, 8:48 PM
debdrup edited reviewers, added: farhan_farhan.codes; removed: debdrup.

Commandeering this now that @rpokala has approved it on IRC.