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 f1994189 authored by Rob Swindell's avatar Rob Swindell 💬

Print "All good" or "All bad" when trying to recover or split a packet

At Nelgin's suggestion, if all the messages in a packet are either good or bad, say so (since no .good or .bad file will be generated in that case).
parent 33a610ee
Pipeline #2441 passed with stage
in 10 minutes and 12 seconds
......@@ -366,16 +366,20 @@ int main(int argc, char** argv)
fclose(good);
good = NULL;
if(length <= sizeof(fpkthdr_t) + sizeof(uint16_t) // no messages
|| length == ftell(fp))
|| length == ftell(fp)) {
puts("All good.");
remove(good_fname);
}
}
if(bad != NULL) {
long length = ftell(bad);
fclose(bad);
bad = NULL;
if(length <= sizeof(fpkthdr_t) + sizeof(uint16_t) // no messages
|| length == ftell(fp))
|| length == ftell(fp)) {
puts("All bad.");
remove(bad_fname);
}
}
fclose(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