Skip to content
Snippets Groups Projects
Commit b751fa49 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 351ad120
No related branches found
No related tags found
No related merge requests found
......@@ -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