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)
Tue, Oct 29, 12:27 PM
Unknown Object (File)
Oct 11 2024, 3:54 PM
Unknown Object (File)
Oct 4 2024, 5:02 AM
Unknown Object (File)
Oct 3 2024, 6:18 PM
Unknown Object (File)
Oct 3 2024, 3:42 PM
Unknown Object (File)
Oct 3 2024, 1:26 PM
Unknown Object (File)
Oct 3 2024, 1:21 PM
Unknown Object (File)
Oct 3 2024, 11:22 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 Not Applicable
Unit
Tests Not Applicable

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.