summary refs log tree commit diff
diff options
context:
space:
mode:
authora-wing <1@233.email>2018-10-08 11:24:23 +0800
committerDaniel Shahaf <d.s@daniel.shahaf.name>2018-10-08 13:46:32 +0000
commit00baf08602705f1edc13266c24ecf2df5241143b (patch)
tree627fc14d5b2f74ade11480d81f8c002d6febb685
parente38f15f8ff23651a8c4ef9fc394de7be93eb620f (diff)
downloadzsh-00baf08602705f1edc13266c24ecf2df5241143b.tar.gz
zsh-00baf08602705f1edc13266c24ecf2df5241143b.tar.xz
zsh-00baf08602705f1edc13266c24ecf2df5241143b.zip
43623: Fix Completion iptables -t raw security
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Linux/Command/_iptables6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c2f645bcd..23bc06199 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-08  a-wing  <1@233.email>
+
+	* 43623: Completion/Linux/Command/_iptables: Fix Completion
+	iptables -t raw security
+
 2018-10-08  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
 	* 43620 (tweaked): Doc/Zsh/contrib.yo,
diff --git a/Completion/Linux/Command/_iptables b/Completion/Linux/Command/_iptables
index 447d7c932..ae8d66ea4 100644
--- a/Completion/Linux/Command/_iptables
+++ b/Completion/Linux/Command/_iptables
@@ -7,7 +7,7 @@ case $service in
   iptables-save | ip6tables-save)
     _arguments -s \
       {-c,--counters}'[include values of packet and byte counters in output]' \
-      {-t,--table}'[specify table]:table:(filter nat mangle)'
+      {-t,--table}'[specify table]:table:(filter nat mangle raw security)'
     return
   ;;
   iptables-restore | ip6tables-restore)
@@ -89,7 +89,7 @@ esac
 local i=1
 typeset -U args
 while
-  (( i=words[(ib.i.)-m|--match]+1 )) 
+  (( i=words[(ib.i.)-m|--match]+1 ))
 (( i<CURRENT )); do
   case ${words[i]}; in
     ah) args+=( '--ahspi[match SPIs in AH header]:*^!:spi' ) ;;
@@ -158,7 +158,7 @@ done
 _arguments -C -s \
   '(-)'{-h,--help}'[print program information]' \
   '(-)'{-V,--version}'[print version information]' \
-  '(-h --help -V --version)'{-t,--table}'[specify table]:table:(filter nat mangle)' \
+  '(-h --help -V --version)'{-t,--table}'[specify table]:table:(filter nat mangle raw security)' \
   "($rcmds $cmds)"{-A,--append}'[append rules to end of specified chain]:chain:->chains' \
   "($rcmds $cmds -c --set-counters)"{-D,--delete}'[delete rules from specified chain]:chain:->chains::rule number:->rulenums' \
   "($rcmds $cmds)"{-I,--insert}'[insert rules before specified rule number]:chain:->chains::rule number:->rulenums' \