Hi,
* Frederik Dannemare <[EMAIL PROTECTED]> [2006-11-03 15:16]:
> On Wednesday 04 October 2006 17:44, Nico Golde wrote:
> > Package: motion
> > Version: 3.2.3-1+b1
> > Severity: normal
> > Tags: patch
> > Hi,
> > If you call motion with -d for debugging it complains about
> > amissing parameter. Referring to the manpage it does not
> > need a parameter.
> > A fix would be:
> > Line 1107 of conf.c
> > - while ((c=getopt(conf->argc, conf->argv, "c:d:hns?"))!=EOF)
> > + while ((c=getopt(conf->argc, conf->argv, "c:dhns?"))!=EOF)
> 
> Just tried this but got a segfault trying to run 'motion -d'. Running 
> motion with using -d works fine, though.

Sure if the code says something different than the manpage 
it will not work. My point was that the manpage says (and 
you call it like this also) without a parameter, just -d but
the code says it has to be called with a parameter -d 
<parameter>. Thats why its 'd:' not 'd' in getopt.

Kind regards
Nico
-- 
Nico Golde - http://www.ngolde.de
JAB: [EMAIL PROTECTED] - GPG: 0x73647CFF
Forget about that mouse with 3/4/5 buttons,
gimme a keyboard with 103/104/105 keys!

Attachment: pgpuse7PIcphZ.pgp
Description: PGP signature

Reply via email to