On Fri, Dec 23, 2005 at 01:09:31AM +0100, Artur R. Czechowski wrote:
> The rrd_graph_options() gets a string with parameters. The begin if this
> string is (at least in my case, but this is common value in rrdtools):
> --start -2d
> The rrd_graph_options calls getopt_long to split parameters into tokens.
> You can see the code in rrdtool's sources, file rrd_graph.c, line 2965.
> getopt_long reckognises the --start parameter correctly and, according to
> struct option returns opt as s. But, for some strange reasons, it sets
> optarg for NULL.

Erm, don't you need to write --start=-2d if you want an optarg that begins
with a hyphen?

Anyway, I don't see where any of the other packages you've mentioned are
providing a broken implementation of getopt_long.  Shouldn't you check where
this "broken" function is coming from, and file the bug there?

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
[EMAIL PROTECTED]                                   http://www.debian.org/

Attachment: signature.asc
Description: Digital signature

Reply via email to