]> Dogcows Code - chaz/tar/commit
Improve checks for incompatible options.
authorSergey Poznyakoff <gray@gnu.org.ua>
Sat, 29 Jun 2013 07:31:37 +0000 (10:31 +0300)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sat, 29 Jun 2013 07:38:47 +0000 (10:38 +0300)
commitcfebb3cedfb678e595b0a389074d5d7c79a33fd5
treed2e98c97d23703b0633a9b4ef7f4fbd5975f50e4
parent87369861f9afc8380e866ead3348d630821bcc02
Improve checks for incompatible options.

* src/common.h (READ_LIKE_SUBCOMMAND): Remove define.
* src/tar.c (IS_SUBCOMMAND_CLASS): New macro.
(decode_options): Use IS_SUBCOMMAND_CLASS in checking
option compatibility.
Accept the --verify option only with subcommands that
write to the archive.

* tests/opcomp01.at: New test case.
* tests/opcomp02.at: New test case.
* tests/opcomp03.at: New test case.
* tests/opcomp04.at: New test case.
* tests/opcomp05.at: New test case.
* tests/opcomp06.at: New test case.
* tests/Makefile.am: Add new testcases.
* tests/testsuite.at: Likewise.
src/common.h
src/tar.c
tests/Makefile.am
tests/opcomp01.at [new file with mode: 0644]
tests/opcomp02.at [new file with mode: 0644]
tests/opcomp03.at [new file with mode: 0644]
tests/opcomp04.at [new file with mode: 0644]
tests/opcomp05.at [new file with mode: 0644]
tests/opcomp06.at [new file with mode: 0644]
tests/testsuite.at
This page took 0.024251 seconds and 4 git commands to generate.