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

Commit 4472e206 authored by rswindell's avatar rswindell

Address issue reported by Clogan:

In *nix builds of addfiles, when adding a file list (e.g. files.bbs), the
case (capitalization) of the filenames is taken literally from the file list,
and that may be incorrect in same cases. Detect the correct case of the
filename and use it when importing into the filebases.
parent 6add7765
......@@ -413,7 +413,7 @@ void addlist(char *inpath, file_t f, uint dskip, uint sskip)
if(!isalnum(*fname)) { // filename doesn't begin with an alpha-numeric char?
sprintf(filepath,"%s%s",cur_altpath ? scfg.altpath[cur_altpath-1]
SAFEPRINTF2(filepath,"%s%s",cur_altpath ? scfg.altpath[cur_altpath-1]
: scfg.dir[f.dir]->path,fname);
#ifdef _WIN32
......@@ -422,6 +422,9 @@ void addlist(char *inpath, file_t f, uint dskip, uint sskip)
GetShortPathName(filepath, shortpath, sizeof(shortpath));
SAFECOPY(fname, getfname(shortpath));
SAFECOPY(fname, getfname(filepath));
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