--- sbbs/src/sbbs3/fixsmb.c 2018/04/24 16:41:23 1.1 +++ sbbs/src/sbbs3/fixsmb.c 2018/04/24 16:43:36 1.1.1.2 @@ -2,13 +2,13 @@ /* Synchronet message base (SMB) index re-generator */ -/* $Id: fixsmb.c,v 1.1 2018/04/24 16:41:23 root Exp $ */ +/* $Id: fixsmb.c,v 1.1.1.2 2018/04/24 16:43:36 root Exp $ */ /**************************************************************************** * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * * - * Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * @@ -47,7 +47,8 @@ smb_t smb; BOOL renumber=FALSE; -char* usage="usage: fixsmb [-renumber] [[smb_file] [...]]\n"; +BOOL smb_undelete=FALSE; +char* usage="usage: fixsmb [-renumber] [-undelete] [[smb_file] [...]]\n"; int compare_index(const idxrec_t* idx1, const idxrec_t* idx2) { @@ -164,6 +165,7 @@ int fixsmb(char* sub) if(!(smb.status.attr&SMB_HYPERALLOC)) { length=filelength(fileno(smb.sdt_fp)); + /* TODO: LE Only */ w=0; for(l=0;l