Skip to content

Commit

Permalink
scripts/augeas/nutupsconf.aug.tpl: avoid matching "/" in default.* or…
Browse files Browse the repository at this point in the history
… override.* expressions [networkupstools#2294]

Such possibility makes augtools-1.12.0 upset (fixed since 1.13.0,
see hercules-team/augeas#668 for details)

Signed-off-by: Jim Klimov <[email protected]>
  • Loading branch information
jimklimov committed Apr 29, 2024
1 parent 8931c91 commit 4680bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/augeas/nutupsconf.aug.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ let ups_global = "chroot"
| "debug_min"

(* This expression did involve a lot of courtship around the parser *)
let ups_fields_re = /(default|override)\.[^:=#\r\t\n ]+/
let ups_fields_re = /(default|override)\.[^:=#\r\t\n \/]+/

let ups_fields = "driver"
| "port"
Expand Down

0 comments on commit 4680bb9

Please sign in to comment.