Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit a2110bfc authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Include archive_error_string() in archive_write_header failure msg

Hopefully this helps get to the bottom of Ragnarok's reported problem creating ZIP QWK files with libarchive.
parent 2245523d
Pipeline #2369 passed with stage
in 9 minutes
......@@ -786,7 +786,7 @@ long create_archive(const char* archive, const char* format
archive_entry_set_filetype(entry, AE_IFREG);
archive_entry_set_perm(entry, 0644);
if((result = archive_write_header(ar, entry)) != ARCHIVE_OK)
safe_snprintf(error, maxerrlen, "archive_write_header returned %d", result);
safe_snprintf(error, maxerrlen, "archive_write_header returned %d: %s", result, archive_error_string(ar));
else while(!feof(fp)) {
char buf[256 * 1024];
size_t len = fread(buf, 1, sizeof(buf), fp);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment