the "pre-scan" of the command line parameters shouldn't stop the capture child. The child uses a slightly different parameter pattern, so this isn't an error here. Fixes the reported capture problem

svn path=/trunk/; revision=16516
This commit is contained in:
Ulf Lamping 2005-11-16 21:46:24 +00:00
parent bc5889f6fe
commit 8b24e8d8f0
1 changed files with 6 additions and 2 deletions

View File

@ -1777,8 +1777,12 @@ main(int argc, char *argv[])
/* will never return! */
exit(0);
break;
case '?': /* argument-parsing error - quit now */
exit(0);
case '?': /* argument-parsing error - quit now if we're a normal Ethereal */
/* (a capture child uses a slightly different options pattern, */
/* so don't quit here as this error is only meaningful in the "real" run later) */
if(!capture_child)
exit(0);
break;
}
}