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)
Sun, Jan 15, 8:57 PM
Unknown Object (File)
Wed, Jan 11, 7:06 AM
Unknown Object (File)
Fri, Jan 6, 12:33 AM
Unknown Object (File)
Dec 14 2022, 9:56 PM
Unknown Object (File)
Dec 14 2022, 6:57 PM
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.