summaryrefslogtreecommitdiff
path: root/libarchive_fe
Commit message (Collapse)AuthorAgeFilesLines
* Add printf attributes to the printflike functions used in tests and fixzoulasc2020-01-231-2/+7
| | | | | | the format errors. Closes #1318
* Remove unused members of struct lafe_line_readerMarc Espie2019-06-111-2/+1
| | | | Fixes #1211
* Merge lib/libc/gen/readpassphrase.c v 1.27 from OpenBSDMartin Matuska2019-06-101-44/+51
| | | | Fixes #1209
* Older Solaris at least has no _PATH_TTY, so provide a fallback.Joerg Sonnenberger2016-06-221-0/+4
|
* SIGRTMAX doesn't exist on all systems, so compute the largest usedJoerg Sonnenberger2016-06-211-9/+14
| | | | | signal number. Don't bother with dynamically allocating the array, just use a static array instead. Fix ctype use.
* Fix argument range of ctype functions.Joerg Sonnenberger2016-06-211-3/+3
|
* Declare lafe_progname staticMartin Matuska2016-05-111-1/+1
|
* Issue 675: SIGRTMAX can be non-constant, so allocate the signal tracking ↵Tim Kientzle2016-03-221-2/+5
| | | | array at runtime
* Replace usage of _NSIG with SIGRTMAXEric N. Vander Weele2016-03-181-3/+3
| | | | | | | POSIX specification defines SIGRTMAX. _NSIG is not defined on all platforms (e.g, AIX). Signed-off-by: Eric N. Vander Weele <ericvw@gmail.com>
* fix capitalized windows includesMartin Müllenhaupt2015-01-191-1/+1
|
* Implement readpassphrase function, which read a passphrase from console, on ↵Michihiro NAKAJIMA2014-10-131-5/+36
| | | | Windows.
* Include stdlib.h to avoid build failure on Windows.Michihiro NAKAJIMA2014-10-121-0/+3
|
* Fix build failure on Ubuntu.Michihiro NAKAJIMA2014-09-211-4/+11
|
* Implement reading a passphrase from ttys.Michihiro NAKAJIMA2014-09-212-0/+304
|
* Refactor lafe_setprogname slightly to avoid the repeated logic about default ↵Tim Kientzle2013-12-192-3/+5
| | | | handling
* Hide *lafe_progname and provide getter/setter instead.Jean-Yves Migeon2013-09-062-2/+25
| | | | | This factorizes some code between binaries like bsdtar, bsdcpio, and the soon-to-be mtree.
* Allow format string checking with GCC.Joerg Sonnenberger2012-02-282-2/+12
|
* Introduce archive_match_exclude_pattern_from_file(_w) andMichihiro NAKAJIMA2012-02-122-114/+0
| | | | | | archive_match_include_pattern_from_file(_w) reading exclusion/inclusion patterns from a file. And so retire lafe_exclude_from_file() and lafe_include_from_file because we can use new APIs instead.
* Rename archive_matching to archive_match.Michihiro NAKAJIMA2012-02-081-2/+2
|
* Fix build failure at libarchive_fe.Michihiro NAKAJIMA2012-01-181-0/+1
| | | | SVN-Revision: 4169
* Use archive_matching API at both bsdcpio and bsdtar instead of lafe_exclude ↵Michihiro NAKAJIMA2012-01-184-522/+11
| | | | | | | | | functions. - Remove libarchive_fe/matching.[ch], which are no longer needed. - Move cpio/test/test_pathmatch.c into libarchive/test/test_archive_pathmatch.c. SVN-Revision: 4168
* Spelling fixes from Ulrich Spoerlein.Tim Kientzle2012-01-071-1/+1
| | | | SVN-Revision: 4092
* Remove unnecessary call to strlen; we already know how long this string is.Colin Percival2011-08-161-1/+1
| | | | | | Via: Tarsnap SVN-Revision: 3628
* Accept both '!' and '^' for a negated character class.Tim Kientzle2010-10-061-2/+2
| | | | SVN-Revision: 2748
* Improve the testing of tar -X and try to correctly handle some odd cases.Tim Kientzle2010-04-111-29/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here are some of the cases currently handled (assuming test.tar contains a single entry "file1"): $ tar xf test.tar file1 Extracts file1 with no error. $ tar xf test.tar file1 file2 Extracts file1, error because file2 was requested but not found. $ tar xf test.tar file1 'file2*' Extracts file1, error because 'file2*' pattern matched no entries. $ tar xf test.tar file1 file1 Extracts file1 with no error $ tar xf test.tar file1 'file*' Extracts file1 with no error $ tar xf test.tar --exclude=file1 Does not extract file1, no error. $ tar xf test.tar --exclude=file1 file1 Does not extract file1, no error. $ tar xf test.tar --exclude=file2 file1 Extracts file1, no error. SVN-Revision: 2229
* Simplify the line reader:Joerg Sonnenberger2010-02-201-31/+29
| | | | | | | | | | - Do not allocate a buffer in advance, it will be reallocated on the first round anyway. - Allocate one more byte to allow always terminating the buffer. - Use strcpsn to compute the end of line. This slightly changes the behavior for NUL in text lines as they are no longer truncated. SVN-Revision: 1929
* The second argument for lafe_line_reader has been changed to a booleanJoerg Sonnenberger2010-02-201-1/+1
| | | | | | in revision 1385, catch up. SVN-Revision: 1922
* Remove unreachable code.Michihiro NAKAJIMA2010-01-061-2/+0
| | | | SVN-Revision: 1809
* Don't use _getcwd and _strdup on Borland C Compiler.Michihiro NAKAJIMA2009-12-181-1/+1
| | | | | | This is covering r1757. SVN-Revision: 1762
* Teach it to compiler and analyzer that function `lafe_errc' is no return.Michihiro NAKAJIMA2009-11-091-1/+8
| | | | | | Found by Clang Static Analyzer. SVN-Revision: 1626
* Make the __FBSDID() handling more platform-agnostic by usingTim Kientzle2009-11-011-5/+7
| | | | | | | | | | | | HAVE_SYS_CDEFS_H to control the inclusion of sys/cdefs.h and defining a fake __FBSDID() macro if we need one. In particular, this deals a lot more gracefully with systems that are not FreeBSD but use FreeBSD-derived system headers. See Issue 46 on libarchive.googlecode.com for discussion. Submitted by: cpr420 SVN-Revision: 1565
* Test various line separators in -T input, including CRLF, NL, and null.Tim Kientzle2009-08-234-11/+20
| | | | | | Fix tar to pass the test. SVN-Revision: 1385
* Windows _strdup nonsense.Tim Kientzle2009-07-271-0/+4
| | | | SVN-Revision: 1298
* Refactor common frontend code into a separate library.Joerg Sonnenberger2009-05-269-0/+983
SVN-Revision: 1118