Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435986 - net-firewall/ipset-6.13 - ipset v6.13: Missing mandatory argument to command create
Summary: net-firewall/ipset-6.13 - ipset v6.13: Missing mandatory argument to command ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-23 11:15 UTC by Fredrik Eriksson
Modified: 2013-02-17 17:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix parsing of command line (command_parser.patch,402 bytes, patch)
2012-11-01 20:12 UTC, Fredrik Eriksson
Details | Diff
ebuild for patched ipset (ipset-6.13-r1.ebuild,3.43 KB, text/plain)
2012-11-01 20:14 UTC, Fredrik Eriksson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fredrik Eriksson 2012-09-23 11:15:15 UTC
I'm not sure if this is a gentoo or upstream bug, but after installing ipset-6.13 I can't enter interactive mode for ipset. The man page have not changed, so I assume that the functionality should still be present.

Reproducible: Always

Steps to Reproduce:
1. Update ipset to version 6.13
2. run "ipset -"

Actual Results:  
Does not enter interactive mode, instead gives the following error message:

ipset v6.13: Missing mandatory argument to command create
Try `ipset help' for more information.


Expected Results:  
Should have entered ipset interactive mode.

accoring to the manual for 6.13:

       -      If a dash is specified as command, then ipset enters a simple interactive mode and the commands are read from the standard input.
              The interactive mode can be finished by entering the pseudo-command quit.
Comment 1 Fredrik Eriksson 2012-11-01 20:12:51 UTC
Created attachment 327986 [details, diff]
Patch to fix parsing of command line

I got bitten by this bug again and took a closer look. Turned out to be a logic flaw with the command parser ("-" and "-N" is very similar if you only compare the first character). This patch fixes this and works for me. I can't see how it could break anything, but I haven't really tested it extensively.
Comment 2 Fredrik Eriksson 2012-11-01 20:14:09 UTC
Created attachment 327988 [details]
ebuild for patched ipset
Comment 3 Sergey Popov gentoo-dev 2013-02-17 17:36:51 UTC
Fixed in 6.15