Navigation Menu

Skip to content

Commit

Permalink
Sshd: reset seq counter for each array setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Cleal committed Sep 18, 2012
1 parent 36fa864 commit f04d7df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lenses/sshd.aug
Expand Up @@ -78,7 +78,7 @@ module Sshd =

let array_entry (k:string) =
let value = store /[^ \t\n]+/ in
[ key k . [ sep . seq k . value]* . eol ]
[ key k . counter k . [ sep . seq k . value]* . eol ]

let other_entry =
let value = store /[^ \t\n]+([ \t]+[^ \t\n]+)*/ in
Expand All @@ -100,7 +100,7 @@ module Sshd =

let macs =
let mac_value = store /[^, \t\n]+/ in
[ key "MACs" . sep .
[ key "MACs" . sep . counter "macs" .
[ seq "macs" . mac_value ] .
([ seq "macs" . Util.del_str "," . mac_value])* .
eol ]
Expand Down
4 changes: 2 additions & 2 deletions lenses/tests/test_sshd.aug
Expand Up @@ -13,8 +13,8 @@ AcceptEnv LC_IDENTIFICATION LC_ALL\n"
{ "4" = "LC_TELEPHONE" }
{ "5" = "LC_MEASUREMENT" } }
{ "AcceptEnv"
{ "6" = "LC_IDENTIFICATION" }
{ "7" = "LC_ALL" } }
{ "1" = "LC_IDENTIFICATION" }
{ "2" = "LC_ALL" } }


test Sshd.lns get "HostKey /etc/ssh/ssh_host_rsa_key
Expand Down

0 comments on commit f04d7df

Please sign in to comment.