[or-cvs] integrated use of getoption() into OR. removed getargs() an...

Bruce Montrose montrose at itd.nrl.navy.mil
Mon Jul 15 12:47:06 UTC 2002


I cannot reproduce this error. It seems to be working fine for me.

moria3-orrc currently has CoinWeight = 0.0 and when I do
../or/or -f moria3-orrc, the onion router starts right up with no error.

I tried putting just plain "0" in the config file, and it still works.

Also, the error message that I have in place for CoinWeight is as follows:
"CoinWeight option must be between 0.0 and 1.0 but not including 1.0."

I am not sure where the error message you stated is coming from or what
is causing it. Try including the "-v" option along with the "-f" option so that
I can see which options have been successfully set prior to the error message
you are getting. I suspect that all the options are being set properly as 
they are
for me, and that the error message you are getting is unrelated to getoption().

At 03:48 PM 7/13/2002 -0400, you wrote:
>On Fri, Jul 12, 2002 at 01:12:11PM -0400, montrose at seul.org wrote:
> > Update of /home/or/cvsroot/src/or
> > In directory moria.seul.org:/tmp/cvs-serv16741/src/or
> >
> > Modified Files:
> >       main.c
> > Log Message:
> > integrated use of getoption() into OR. removed getargs() and getconfig().
>
>Bruce:
>
>[arma at moria config]$ ../or/or --f moria3-orrc
>Usage: or [-v?] [-a <port>] [-w <weight>] [-f <file>] [-l <level>] [-m <max>]
>         [-o <port>] [-p <port>] [-k <max>] [-r <port>] [-t <policy>] [-g 
> <role>]
>         [--usage]
>moria3-orrc: number too large or too small
>
>When I change CoinWeight from 0.0 to 0.01, it works.
>
>a) can you make CoinWeight accept 0?
>b) can you make that error message indicate *which* number was too large or
>    too small?
>
>--Roger



More information about the tor-commits mailing list