| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Without this patch, `bsdcpio_test_option_c` failed after 2038-01-19 with
```
.../libarchive-3.6.2/cpio/test/test_option_c.c:143: Assertion failed: t >= now - 2
.../libarchive-3.6.2/cpio/test/test_option_c.c:169: Assertion failed: t >= now - 2
.../libarchive-3.6.2/cpio/test/test_option_c.c:205: Assertion failed: t >= now - 2
```
Background:
As part of my work on reproducible builds for openSUSE, I check that
software still gives identical build results in the future.
The usual offset is +16 years, because that is how long I expect some
software will be used in some places.
This showed up failing tests in our package build.
See https://reproducible-builds.org/ for why this matters.
|
|
|
|
|
|
|
|
|
| |
Otherwise there are 32/64-bit pointer conversions going on. In Windows
since MSVC2005, time_t has been 64-bit. MinGW needs a hack to get 64-bit
time_t.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
|
|
|
|
|
| |
These were missing from 2d329073435d36065ce30bfd29428f6a45e41016
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
|
| |
Issue #1828
|
|
|
| |
Signed-off-by: Rosen Penev <rosenp@gmail.com>
|
|
|
|
| |
Use localtime_r() or _localtime64_s() if available
|
|\
| |
| | |
Support for PWB and v7 binary cpio formats
|
| | |
|
|/
|
|
| |
Fixes CMake warnings regarding CMP0115.
|
|
|
|
| |
Fixes #1339
|
|
|
|
|
|
| |
the format errors.
Closes #1318
|
|
|
|
|
|
|
| |
Treat targets ending with /. and /.. as directory symlinks
Explicitly test for file and directory symlinks
Improve debug output on test failure
Fix two memory allocations
|
|
|
|
| |
Enable tests on MinGW CI builds
|
|
|
|
| |
tests: extend assertMakeSymlink with targetIsDir
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
GCC8 tries to diagnose `snprintf()` overflows but isn't quite
smart enough for this case, so emits a false-positive warning.
Remember that `%12s` only specifies the minimum number of bytes. GCC8
conservatively assumes this might result in writing the full length of
`date2`. (Which will never be longer than 12 bytes, but GCC8
apparently can't reason about `strftime` format specifiers yet.)
Changing the specifier here to `%12.12s` explicitly truncates to 12
bytes and should help the compiler understand that this will never
overflow.
While I'm here, correct a minor typo in the previous line; it used
`sizeof(date)` instead of `sizeof(date2)`. (Both are the same
size, so this had no functional impact.)
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Add sunacl_get() and setTestAcl() to common test code
Test for membership.h on Mac OS X and make it a requirement for ACLs
|
| |
|
| |
|
|
|
| |
Sponsored by: Tarsnap Backup Inc.
|
|\
| |
| | |
Issue 696: ppc64le mache ckech failure
|
| |
| |
| |
| |
| |
| |
| | |
This issue is not ppc64le specific. I have experienced on my
4.4.22-gnu #1 SMP 1 i686 GNU/Linux. Might be dependant on kernel
version and/or machine load. POSIX says errors after posix_spawnp
returns can be signaled by child exitting with an 127 exit code.
|
| |
| |
| |
| |
| | |
Reported by: Coverity
CID: 1331631, 1331632, 1331633, 1331646
|
| |
| |
| | |
Sponsored by: Tarsnap Backup Inc.
|
| | |
|
|/ |
|
|
|
|
|
| |
Thanks to Ed Maste for reporting this leak.
Found by: Coverity
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Tar was exiting with success if an input file named on the command
line was not present.
Includes tests for both bsdtar and bsdcpio to ensure this does
not regress.
|
| |
|
| |
|
|
|
|
| |
the current user
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
snprintf shouldn't be defined in a macro in VS2015 and above due to its C99 changes
|
|
|
|
|
|
| |
and this platform does not have an lz4 executable.
It seems there should be a better way to handle this.... <sigh>
|