nih_option_parser() disallows negative numeric option arguments

Bug #1036706 reported by James Hunt on 2012-08-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libnih
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.

James Hunt (jamesodhunt) wrote :
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  Edit
Everyone can see this information.

Other bug subscribers