[augeas-devel] sshd lens bugfix
Matthew Palmer
matt at anchor.net.au
Sat Jan 30 11:57:10 UTC 2010
Apparently nobody noticed that SSH subsystem commands can quite validly have
spaces in them ("with optional arguments"); the patch below fixes that
problem.
>From c306a1ed208aecbb689cf91c219dd23b7f201179 Mon Sep 17 00:00:00 2001
From: Matt Palmer <mpalmer at hezmatt.org>
Date: Sat, 30 Jan 2010 22:52:56 +1100
Subject: [PATCH] SSH subsystems are allowed to have spaces in them, you know
---
lenses/sshd.aug | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lenses/sshd.aug b/lenses/sshd.aug
index 826d416..a0782b9 100644
--- a/lenses/sshd.aug
+++ b/lenses/sshd.aug
@@ -92,7 +92,7 @@ module Sshd =
let deny_users = array_entry "DenyUsers"
let subsystemvalue =
- let value = store /[^ \t\n]+/ in
+ let value = store (/[^ \t\n]/ | /[^ \t\n][^\n]*[^ \t\n]/) in
[ key /[A-Za-z0-9]+/ . sep . value . eol ]
let subsystem =
--
1.5.6.5
More information about the augeas-devel
mailing list