Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 435986

Summary: net-firewall/ipset-6.13 - ipset v6.13: Missing mandatory argument to command create
Product: Gentoo Linux Reporter: Fredrik Eriksson <gentoo>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: normal CC: pva
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to fix parsing of command line
ebuild for patched ipset

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