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 73c915cc authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Fix misuse of loadfiles()

parent 67e12727
Pipeline #2171 failed with stage
in 9 minutes and 31 seconds
......@@ -464,7 +464,7 @@ void synclist(char *inpath, int dirnum)
return;
}
size_t file_count;
file_list = loadfiles(&smb, NULL, 0, /* extdesc: */FALSE, FILE_SORT_NATURAL, &file_count);
file_list = loadfiles(&smb, NULL, 0, file_detail_normal, FILE_SORT_NATURAL, &file_count);
printf("\nSynchronizing %s with %s %s\n\n"
,listpath,scfg.lib[scfg.dir[dirnum]->lib]->sname,scfg.dir[dirnum]->sname);
......
......@@ -340,7 +340,7 @@ int main(int argc, char **argv)
t = time(NULL) - (max_age * 24 * 60 * 60);
ulong file_count;
file_t* file_list = loadfiles(&smb
,/* filespec: */pattern, /* time: */t, /* extdesc: */TRUE, scfg.dir[i]->sort, &file_count);
,/* filespec: */pattern, /* time: */t, file_detail_extdesc, scfg.dir[i]->sort, &file_count);
if(misc&AUTO) {
sprintf(str,"%sFILES.BBS",scfg.dir[i]->path);
......
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