Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Compare Revisions
95b6c86697780fe968d9f92afa4d00d8daaa354f...2cc6b5d95b825488dd791c6458aff49a546d129a
Commits (1)
Use fexistcase() for RIP assets
· 2cc6b5d9
Deucе
authored
May 20, 2021
It seems that at least LORD has upper-case in the ZIPs and lower-case in the queries.
2cc6b5d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/syncterm/ripper.c
src/syncterm/ripper.c
+3
-0
No files found.
src/syncterm/ripper.c
View file @
2cc6b5d9
...
@@ -12492,6 +12492,7 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs)
...
@@ -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)))
if (!get_cache_fn_base(rip.bbs, cache_path, sizeof(cache_path)))
break;
break;
strcat(cache_path, &args[6]);
strcat(cache_path, &args[6]);
fexistcase(cache_path);
struct stat st;
struct stat st;
char str[1024];
char str[1024];
char dstr[64];
char dstr[64];
...
@@ -12621,6 +12622,7 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs)
...
@@ -12621,6 +12622,7 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs)
strcat(cache_path, &args[9]);
strcat(cache_path, &args[9]);
if (strchr(cache_path, '.') == NULL)
if (strchr(cache_path, '.') == NULL)
strcat(cache_path, ".ICN");
strcat(cache_path, ".ICN");
fexistcase(cache_path);
icn = fopen(cache_path, "rb");
icn = fopen(cache_path, "rb");
if (icn != NULL) {
if (icn != NULL) {
struct ciolib_pixels *pix = malloc(sizeof(struct ciolib_pixels));
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)
...
@@ -13355,6 +13357,7 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs)
break;
break;
}
}
strncpy(&cache_path[cpln], &args[8], sizeof(cache_path) - cpln);
strncpy(&cache_path[cpln], &args[8], sizeof(cache_path) - cpln);
fexistcase(cache_path);
FILE* fp = fopen(cache_path, "rb");
FILE* fp = fopen(cache_path, "rb");
if (fp == NULL) {
if (fp == NULL) {
strcpy(rip.bbs->uldir, uldir);
strcpy(rip.bbs->uldir, uldir);
...
...