Bug 117991 - I cannot understand poptGetArgs
Summary: I cannot understand poptGetArgs
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: popt   
(Show other bugs)
Version: 9
Hardware: All Linux
medium
low
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-03-10 20:42 UTC by Stephane Bortzmeyer
Modified: 2007-04-18 17:04 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-03-10 21:39:55 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
A simple test case (1.90 KB, text/plain)
2004-03-10 20:43 UTC, Stephane Bortzmeyer
no flags Details

Description Stephane Bortzmeyer 2004-03-10 20:42:41 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0)
Gecko/20020623 Debian/1.0.0-0.woody.1

Description of problem:

Hello,

I try to write a C program which uses popt. If it finds a given option
(-m in 
the example I send you), it should stop processing for a future pass
of popt 
(you see why I cannot use getopt). From the man page, I thought that 
poptGetArgs shoudl give me the leftover arguments but it always send NULL.

Any idea? 



Version-Release number of selected component (if applicable):
1.6 or 1.7

How reproducible:
Always

Steps to Reproduce:
1.gcc -o test-popt test-popt.c -lpopt
2../test-popt -v -m foobar -r -u
3.
    

Actual Results:  The assertion fails.


Expected Results:  The remaining args, "-r -u".


Additional info:

Comment 1 Stephane Bortzmeyer 2004-03-10 20:43:44 UTC
Created attachment 98438 [details]
A simple test case

Comment 2 Jeff Johnson 2004-03-10 21:39:55 UTC
Look at the programs run by "make check" for examples.


Note You need to log in before you can comment on or make changes to this bug.