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

Commits (2)
  • Rob Swindell's avatar
    Fix error when moving files · 73517eee
    Rob Swindell authored
    e.g. file.cpp line 239 (removefile) removing "filename.zip" access=-203 info=smb_freemsgdat reading allocation record at offset 1108
    
    Also, if there is an error removing the original file from the filebase, don't proceed to move the actual file (and log a successful move).
    73517eee
  • Rob Swindell's avatar
    When toggling extended file descriptions with the 'T' command, save user · fbbdb154
    Rob Swindell authored
    Save the user's "misc" flags to the userbase when they use the 'T' command from the batch flagging prompt. Without this change, the option would automatically revert if/when the user record was re-read (which can happen at any time).
    fbbdb154
......@@ -244,6 +244,7 @@ bool sbbs_t::removefile(smb_t* smb, file_t* f)
/****************************************************************************/
bool sbbs_t::movefile(smb_t* smb, file_t* f, int newdir)
{
file_t orgfile = *f;
if(findfile(&cfg, newdir, f->name, NULL)) {
bprintf(text[FileAlreadyThere], f->name);
return false;
......@@ -251,7 +252,8 @@ bool sbbs_t::movefile(smb_t* smb, file_t* f, int newdir)
if(!addfile(&cfg, newdir, f, f->extdesc, /* client: */NULL))
return false;
removefile(smb, f);
if(!removefile(smb, &orgfile))
return false;
bprintf(text[MovedFile],f->name
,cfg.lib[cfg.dir[newdir]->lib]->sname,cfg.dir[newdir]->sname);
char str[MAX_PATH+1];
......
......@@ -494,6 +494,7 @@ int sbbs_t::batchflagprompt(smb_t* smb, file_t** bf, ulong* row, uint total
return(3);
if(ch=='T') {
useron.misc ^= EXTDESC;
putuserrec(&cfg, useron.number, U_MISC, 0, ultoa(useron.misc,str,16));
return 2;
}
if(ch=='B' || ch=='D') { /* Flag for batch download */
......