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 2cc6b5d9 authored by Deucе's avatar Deucе 👌🏾

Use fexistcase() for RIP assets

It seems that at least LORD has upper-case in the ZIPs and lower-case
in the queries.
parent 95b6c866
Pipeline #2247 passed with stage
in 8 minutes and 52 seconds
......@@ -12492,6 +12492,7 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs)
if (!get_cache_fn_base(rip.bbs, cache_path, sizeof(cache_path)))
break;
strcat(cache_path, &args[6]);
fexistcase(cache_path);
struct stat st;
char str[1024];
char dstr[64];
......@@ -12621,6 +12622,7 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs)
strcat(cache_path, &args[9]);
if (strchr(cache_path, '.') == NULL)
strcat(cache_path, ".ICN");
fexistcase(cache_path);
icn = fopen(cache_path, "rb");
if (icn != NULL) {
struct ciolib_pixels *pix = malloc(sizeof(struct ciolib_pixels));
......@@ -13355,6 +13357,7 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs)
break;
}
strncpy(&cache_path[cpln], &args[8], sizeof(cache_path) - cpln);
fexistcase(cache_path);
FILE* fp = fopen(cache_path, "rb");
if (fp == NULL) {
strcpy(rip.bbs->uldir, uldir);
......
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