Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add printf attributes to the printflike functions used in tests and fix | zoulasc | 2020-01-23 | 1 | -2/+7 |
| | | | | | | the format errors. Closes #1318 | ||||
* | Remove unused members of struct lafe_line_reader | Marc Espie | 2019-06-11 | 1 | -2/+1 |
| | | | | Fixes #1211 | ||||
* | Merge lib/libc/gen/readpassphrase.c v 1.27 from OpenBSD | Martin Matuska | 2019-06-10 | 1 | -44/+51 |
| | | | | Fixes #1209 | ||||
* | Older Solaris at least has no _PATH_TTY, so provide a fallback. | Joerg Sonnenberger | 2016-06-22 | 1 | -0/+4 |
| | |||||
* | SIGRTMAX doesn't exist on all systems, so compute the largest used | Joerg Sonnenberger | 2016-06-21 | 1 | -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 Sonnenberger | 2016-06-21 | 1 | -3/+3 |
| | |||||
* | Declare lafe_progname static | Martin Matuska | 2016-05-11 | 1 | -1/+1 |
| | |||||
* | Issue 675: SIGRTMAX can be non-constant, so allocate the signal tracking ↵ | Tim Kientzle | 2016-03-22 | 1 | -2/+5 |
| | | | | array at runtime | ||||
* | Replace usage of _NSIG with SIGRTMAX | Eric N. Vander Weele | 2016-03-18 | 1 | -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 includes | Martin Müllenhaupt | 2015-01-19 | 1 | -1/+1 |
| | |||||
* | Implement readpassphrase function, which read a passphrase from console, on ↵ | Michihiro NAKAJIMA | 2014-10-13 | 1 | -5/+36 |
| | | | | Windows. | ||||
* | Include stdlib.h to avoid build failure on Windows. | Michihiro NAKAJIMA | 2014-10-12 | 1 | -0/+3 |
| | |||||
* | Fix build failure on Ubuntu. | Michihiro NAKAJIMA | 2014-09-21 | 1 | -4/+11 |
| | |||||
* | Implement reading a passphrase from ttys. | Michihiro NAKAJIMA | 2014-09-21 | 2 | -0/+304 |
| | |||||
* | Refactor lafe_setprogname slightly to avoid the repeated logic about default ↵ | Tim Kientzle | 2013-12-19 | 2 | -3/+5 |
| | | | | handling | ||||
* | Hide *lafe_progname and provide getter/setter instead. | Jean-Yves Migeon | 2013-09-06 | 2 | -2/+25 |
| | | | | | This factorizes some code between binaries like bsdtar, bsdcpio, and the soon-to-be mtree. | ||||
* | Allow format string checking with GCC. | Joerg Sonnenberger | 2012-02-28 | 2 | -2/+12 |
| | |||||
* | Introduce archive_match_exclude_pattern_from_file(_w) and | Michihiro NAKAJIMA | 2012-02-12 | 2 | -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 NAKAJIMA | 2012-02-08 | 1 | -2/+2 |
| | |||||
* | Fix build failure at libarchive_fe. | Michihiro NAKAJIMA | 2012-01-18 | 1 | -0/+1 |
| | | | | SVN-Revision: 4169 | ||||
* | Use archive_matching API at both bsdcpio and bsdtar instead of lafe_exclude ↵ | Michihiro NAKAJIMA | 2012-01-18 | 4 | -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 Kientzle | 2012-01-07 | 1 | -1/+1 |
| | | | | SVN-Revision: 4092 | ||||
* | Remove unnecessary call to strlen; we already know how long this string is. | Colin Percival | 2011-08-16 | 1 | -1/+1 |
| | | | | | | Via: Tarsnap SVN-Revision: 3628 | ||||
* | Accept both '!' and '^' for a negated character class. | Tim Kientzle | 2010-10-06 | 1 | -2/+2 |
| | | | | SVN-Revision: 2748 | ||||
* | Improve the testing of tar -X and try to correctly handle some odd cases. | Tim Kientzle | 2010-04-11 | 1 | -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 Sonnenberger | 2010-02-20 | 1 | -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 boolean | Joerg Sonnenberger | 2010-02-20 | 1 | -1/+1 |
| | | | | | | in revision 1385, catch up. SVN-Revision: 1922 | ||||
* | Remove unreachable code. | Michihiro NAKAJIMA | 2010-01-06 | 1 | -2/+0 |
| | | | | SVN-Revision: 1809 | ||||
* | Don't use _getcwd and _strdup on Borland C Compiler. | Michihiro NAKAJIMA | 2009-12-18 | 1 | -1/+1 |
| | | | | | | This is covering r1757. SVN-Revision: 1762 | ||||
* | Teach it to compiler and analyzer that function `lafe_errc' is no return. | Michihiro NAKAJIMA | 2009-11-09 | 1 | -1/+8 |
| | | | | | | Found by Clang Static Analyzer. SVN-Revision: 1626 | ||||
* | Make the __FBSDID() handling more platform-agnostic by using | Tim Kientzle | 2009-11-01 | 1 | -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 Kientzle | 2009-08-23 | 4 | -11/+20 |
| | | | | | | Fix tar to pass the test. SVN-Revision: 1385 | ||||
* | Windows _strdup nonsense. | Tim Kientzle | 2009-07-27 | 1 | -0/+4 |
| | | | | SVN-Revision: 1298 | ||||
* | Refactor common frontend code into a separate library. | Joerg Sonnenberger | 2009-05-26 | 9 | -0/+983 |
SVN-Revision: 1118 |