Skip to content
Snippets Groups Projects
Commit 86825b66 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Only truncate ".anything" from supplied msgbase path if it's ".shd"

Make behavior consistent with smbutil and fixmsb.
parent cd997ea3
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4547 passed
......@@ -138,7 +138,7 @@ char *usage="\nusage: chksmb [-opts] <filespec.SHD>\n"
int main(int argc, char **argv)
{
char str[128],*p,*s,*beep="";
char str[128],*p,*beep="";
char from[26];
char* body;
char* tail;
......@@ -245,9 +245,8 @@ int main(int argc, char **argv)
ZERO_VAR(smb);
SAFECOPY(smb.file,argv[x]);
p=strrchr(smb.file,'.');
s=strrchr(smb.file,'\\');
if(p>s) *p=0;
p = getfext(smb.file);
if(p != NULL && stricmp(p, ".shd") == 0) *p=0;
SAFEPRINTF(str, "%s.shd", smb.file);
if(!fexist(str)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment