summaryrefslogtreecommitdiff
path: root/cat
Commit message (Collapse)AuthorAgeFilesLines
* Add printf attributes to the printflike functions used in tests and fixzoulasc2020-01-231-1/+1
| | | | | | the format errors. Closes #1318
* Unify header style, header guard comes firstMartin Matuska2020-01-131-0/+5
| | | | Found by LGTM.com code analysis
* Minor corrections to the formatting of manual page.Ingo Schwarze2019-09-211-6/+5
| | | | | | | | | | | | | | | | | | | | Found with mandoc -Tlint; fixing the following messages: WARNING: bad NAME section content WARNING: missing comma before name WARNING: new sentence, new line WARNING: parenthesis in function name WARNING: skipping no-space macro WARNING: skipping paragraph macro WARNING: unusual Xr order WARNING: unusual Xr punctuation STYLE: no blank before trailing delimiter STYLE: possible typo in section name STYLE: trailing delimiter STYLE: whitespace at end of input line For the meaning of the messages, see: https://man.openbsd.org/mandoc#DIAGNOSTICS
* Add space after version to fix all unit tests besides sparse testsBenjaminTrapani2018-01-201-1/+1
|
* Fix archive freeing bug in bsdcat.Joerg Sonnenberger2017-10-073-5/+55
| | | | | | | | (1) Do not double free a for the stdin case. Reported by Sean Purcell in PR #904. (2) Do not query errors after archive_read_free either, the memory is gone. Split operation into close and read, reporting errors from the former.
* Fix alphabetical order, other small fixesSean Purcell2017-05-151-2/+2
|
* Add zstd test suiteSean Purcell2017-05-155-0/+92
|
* Add NFSv4 ACL support for Linux via librichaclMartin Matuska2017-03-161-1/+6
| | | | | | | | | | | | Richacls are interpreted as NFSv4 ACLs and stored in archive_acl (Richacl flags and masks are not stored). Analog to mac_metadata, NFSv4 ACLs do not get extracted when the extraction of extended attributes is enabled and the "trusted.richacl" extended attribute is present. RichACL masks and are calculated from file mode on extraction. mac_metadata acl check has been moved in the code to be together with the richacl check.
* New tar test: test_option_aclsMartin Matuska2017-03-021-0/+5
| | | | | Add sunacl_get() and setTestAcl() to common test code Test for membership.h on Mac OS X and make it a requirement for ACLs
* test suite: use a single main test file for all testsMartin Matuska2017-02-214-3403/+15
|
* testsuite: allow 'dev' in versionPavel Raiskup2017-02-212-64/+4
|
* Explicitly free archive to reduce valgrind noise.Joerg Sonnenberger2016-12-061-0/+3
|
* Spelling fixes (#831)Graham Percival2016-12-041-2/+2
| | | Sponsored by: Tarsnap Backup Inc.
* Make test output more verbose on WindowsTim Kientzle2016-10-231-1/+2
|
* Sync up the test harnesses, fix an "unused var" warning on WindowsTim Kientzle2016-10-232-1/+55
|
* Add chmod() after make_{dir,file} in test suitesGraham Percival2016-09-261-2/+9
| | | | | | | | | | | | | This is the same change that 38b3f516df865e2dffd0a1bbc9feb923ab2efc38 made to libarchive/test/main.c , but now applied to: cat/test/main.c cpio/test/main.c tar/test/main.c Sponsored by: Tarsnap Backup Inc.
* Add and use assertion_file_mode() in other testsGraham Percival2016-09-262-1/+30
| | | | | | | | | | | This adds the assertion_file_mode() function from libarchive/test/main.c and applies it to cat/test/main.c cpio/test/main.c tar/test/main.c Sponsored by: Tarsnap Backup Inc.
* Issue 720: Allow dashes in third-party version numbersTim Kientzle2016-07-201-1/+1
|
* Issue 657: Allow up to 8k for the test root directory nameTim Kientzle2016-06-021-26/+49
|
* cat: declare static variables and fix several compiler warningsMartin Matuska2016-05-112-7/+7
|
* Sync up test harnessesTim Kientzle2016-04-291-0/+4
|
* Issue 695: check fwrite return value, sync up test harnessesTim Kientzle2016-04-281-1/+32
|
* Accomodate different return codes on WindowsTim Kientzle2016-04-242-2/+2
|
* Bring along a trailing null when guessing the path to the program under testTim Kientzle2016-01-311-1/+1
|
* Really sync up the test harnessesTim Kientzle2016-01-281-0/+11
|
* Fix two broken UU filesTim Kientzle2016-01-282-3/+3
|
* Sync up the test harnesses; add error checks to the UUdecode utilityTim Kientzle2016-01-281-7/+57
|
* Visual Studio 2015 ChangesHans Hinrichsen2016-01-131-1/+1
| | | | snprintf shouldn't be defined in a macro in VS2015 and above due to its C99 changes
* Avoid CMake Warning that used GET_TARGET_PROPERTY with LOCATION property,Michihiro NAKAJIMA2014-10-132-2/+2
| | | | so we should use $<TARGET_FILE> expression instead.
* Fix style.Michihiro NAKAJIMA2014-10-121-7/+7
|
* Fix build failure on Windows.Michihiro NAKAJIMA2014-10-125-15/+404
| | | | | | - Visual Studio does not provide unistd.h - Visual Studio does not provide getopt - Increase portability
* Fix incorrect CMake test directory when building as a subprojectXiao-Long Chen2014-09-161-1/+1
| | | | This is an extension of e800985adbb0820c5692ea016b3a8499d69a73dc
* Add additional tests for lz4 compression in front-end applications.Michihiro NAKAJIMA2014-08-183-0/+48
|
* Add lz4 test for bsdcat.Michihiro NAKAJIMA2014-08-185-0/+64
| | | | | - add test utility function canLz4() - fix test_write_filter_lz4 to use canLz4()
* Allow empty files (after filters) in bsdcat command.Sebastian Freundt2014-08-131-3/+14
| | | | | | | This changeset fixes an issue with empty compressed files, i.e. files that after inflating are of size 0: bsdcat would report unrecognized archive format for those because the raw reader is unable to handle files of zero length.
* Provide regression test case for bsdcat on empty compressed filesSebastian Freundt2014-08-125-0/+92
|
* Add a test utility function, copy_reference_file simply copingMichihiro NAKAJIMA2014-06-292-0/+25
| | | | | | | | | | | | a sample file to the current directory of a running test. A uudecode filter test will use it for its new test. TODO: make a symbolic link file insted of copying a sample file. Historically, libarchive cannot handle uuencoded files when libarchive's test suit was made. Now libarchive can handle it directly by uudecode filter, I think, we can reduce copying sample files to the directory test program expects they are on an isolated directory for their test.
* Apply recent changs in libarvhie/test/main.c to {tar,cpio,cat}/test/main.c ↵Michihiro NAKAJIMA2014-06-291-3/+4
| | | | for keeping maintenacebility.
* Add lafe files to cat projectTim Kientzle2014-04-121-0/+3
|
* Add basic tests for bsdcat.Mike Kazantsev2014-04-0920-0/+3811
|
* Exit with error status from bsdcat if any errors occurred.Mike Kazantsev2014-04-091-1/+3
|
* Return success exit code from "bsdcat --help" and print usage to stdout.Mike Kazantsev2014-04-092-6/+10
|
* Minor style correction in bsdcat.Mike Kazantsev2014-04-071-1/+2
|
* Minor cleanup of a redundant check in bsdcat cli parsing.Mike Kazantsev2014-04-061-1/+1
|
* Change bsdcat behavior to process as many files as possible.Mike Kazantsev2014-04-062-7/+12
| | | | | | Change is to match "cat" behavior of printing any errors (e.g. "unable to open file") and continue to the next file instead of exiting on first error encountered.
* Use getopt() instead of getopt_long() in bsdcat for compatibility reasons.Mike Kazantsev2014-04-061-14/+9
|
* Add optional bsdcat tool.Mike Kazantsev2014-04-044-0/+248
bsdcat works like zcat, bzcat, xzcat and similar tools, but auto-detects source data format, which can also vary between multiple input files.