[augeas-devel] [PATCH 2/6] Cron: Fix parsing of numeric fields
Michael Chapman
mike at very.puzzling.org
Sat Oct 8 11:08:02 UTC 2011
In:
let num = /[0-9\*][0-9\/,-\*]*/
the hyphen was treated as a range, not a literal character. This
erroneously allowed a whole bunch of characters (including all uppercase
letters) in numeric fields.
Signed-off-by: Michael Chapman <mike at very.puzzling.org>
---
lenses/cron.aug | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lenses/cron.aug b/lenses/cron.aug
index f5c0e21..3329145 100644
--- a/lenses/cron.aug
+++ b/lenses/cron.aug
@@ -43,7 +43,7 @@ let comment = Util.comment
let empty = Util.empty
(* Variable: num *)
-let num = /[0-9\*][0-9\/,-\*]*/
+let num = /[0-9*][0-9\/,*-]*/
(* Variable: alpha *)
let alpha = /[A-Za-z]{3}/
--
1.7.6.4
More information about the augeas-devel
mailing list