"zip:encryption=zipcrypt")) {
skipping("This system does not have cryptographic liberary");
archive_write_free(a);
+ free(buff);
return;
}
assertEqualIntA(a, ARCHIVE_OK,
{
skipping("This system does not have cryptographic liberary");
archive_write_free(a);
+ free(buff);
return;
}
assertEqualIntA(a, ARCHIVE_OK,
{
skipping("This system does not have cryptographic liberary");
archive_write_free(a);
+ free(buff);
return;
}
assertEqualIntA(a, ARCHIVE_OK,
(void)a;
if (whence == SEEK_END) {
offset = private->filesize + offset;
- whence = SEEK_SET;
} else if (whence == SEEK_CUR) {
offset = private->fileposition + offset;
- whence = SEEK_SET;
}
if (offset < 0) {
DEFINE_TEST(test_option_b)
{
- char *testprog_ustar = malloc(strlen(testprog) + sizeof(USTAR_OPT) + 1);
- strcpy(testprog_ustar, testprog);
- strcat(testprog_ustar, USTAR_OPT);
+ char *testprog_ustar;
assertMakeFile("file1", 0644, "file1");
if (systemf("cat file1 > test_cat.out 2> test_cat.err") != 0) {
skipping("Platform doesn't have cat");
return;
}
+ testprog_ustar = malloc(strlen(testprog) + sizeof(USTAR_OPT) + 1);
+ strcpy(testprog_ustar, testprog);
+ strcat(testprog_ustar, USTAR_OPT);
/*
* Bsdtar does not pad if the output is going directly to a disk file.