summaryrefslogtreecommitdiff
path: root/libarchive/archive_options.c
Commit message (Collapse)AuthorAgeFilesLines
* Simplify by using strdup. Check for allocation failure.Joerg Sonnenberger2016-12-061-2/+9
|
* Improve readability of ternary expression checking for empty stringBrad King2015-10-261-3/+3
| | | | | | | | | | | | | | | In expressions of the form m != NULL && m[0] == '\0' ? NULL : m the goal is to get a `NULL` pointer if `m` is either `NULL` or an empty string. This is not clear because in the `m == NULL` case we use the `m` side to get `NULL` instead of an explicit `NULL`. Clarify the intent by using the form (m != NULL && m[0] != '\0') ? m : NULL; instead.
* Do not return "Unknown module name" error when a format name matchesMichihiro NAKAJIMA2012-11-301-0/+2
| | | | | a specfied module name and the option name is wrong and filter names do not matche the specfied module name.
* Add support for TAR_WRITE_OPTIONS and TAR_READ_OPTIONS environmmentMichihiro NAKAJIMA2012-11-071-1/+12
| | | | | variables to set default options to writing or reading archives with bsdtar.
* Fix issue 237.Michihiro NAKAJIMA2012-02-141-2/+36
| | | | Properly set a clear error message when archive_{write,read}_set_options failed.
* From Roman Neuhauser: Rework textual options handling.Tim Kientzle2011-03-181-0/+164
* New functions archive_{read,write}_set_{format,filter}_option accept three strings: module name, option name, value. This is a better match for C clients of the library, who want to set one option at a time anyway for better error handling. * archive_{read,write}_set_options still accept a single string with possibly multiple options, but are now much simpler internally because they build on the above. * New tests for all of the above. * Update a lot of tests to give good coverage of the new functions. SVN-Revision: 3026