Skip to content
Snippets Groups Projects
Commit dbfb666a authored by rswindell's avatar rswindell
Browse files

If creating message base (with "-c"), set max_msgs to number following -c, set

max_crcs to -number (if specified). e.g. "smbutil -c1000 -5000 i msgbase"
parent 83df85fd
No related branches found
No related tags found
No related merge requests found
...@@ -1582,7 +1582,8 @@ int main(int argc, char **argv) ...@@ -1582,7 +1582,8 @@ int main(int argc, char **argv)
smb_close(&smb); smb_close(&smb);
continue; continue;
} }
smb.status.max_msgs=count; smb.status.max_msgs=strtoul(cmd+1,NULL,0);
smb.status.max_crcs=count;
if((i=smb_create(&smb))!=0) { if((i=smb_create(&smb))!=0) {
smb_close(&smb); smb_close(&smb);
printf("!Error %d (%s) creating %s\n",i,smb.last_error,smb.file); printf("!Error %d (%s) creating %s\n",i,smb.last_error,smb.file);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment