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)
Sat, Jul 20, 2:53 PM
Unknown Object (File)
Fri, Jul 19, 8:01 PM
Unknown Object (File)
Wed, Jul 10, 1:01 AM
Unknown Object (File)
Jun 24 2024, 10:32 AM
Unknown Object (File)
Jun 23 2024, 2:17 PM
Unknown Object (File)
Jun 20 2024, 3:29 AM
Unknown Object (File)
Jun 2 2024, 8:13 AM
Unknown Object (File)
May 16 2024, 5:08 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.