nih_option_parser() disallows negative numeric option arguments

Bug #1036706 reported by James Hunt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libnih
New
Undecided
Unassigned

Bug Description

This causes the following behaviour:

$ ./prog -f 1 # OK
$ ./prog -f -1 # ERROR

Note that getopt(3) handles both cases. Test program attached.

Revision history for this message
James Hunt (jamesodhunt) wrote :
Revision history for this message
James Hunt (jamesodhunt) wrote :

This isn't necessarily a general fix, but the attached patch resolves the issue for the common case.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.