patch-lenses_sysctl_aug 737 B

12345678910111213141516171819202122
  1. $OpenBSD: patch-lenses_sysctl_aug,v 1.3 2015/06/03 06:10:42 jasper Exp $
  2. Simplevars.entry allows a space between the key and the value,
  3. sysctl(8) doesn't take that as a valid entry.
  4. --- lenses/sysctl.aug.orig Tue Jun 2 00:03:07 2015
  5. +++ lenses/sysctl.aug Tue Jun 2 10:11:04 2015
  6. @@ -33,8 +33,12 @@ let filter = incl "/boot/loader.conf"
  7. (* View: comment *)
  8. let comment = Util.comment_generic /[ \t]*[#;][ \t]*/ "# "
  9. +(* View: entry *)
  10. +let entry = Build.key_value Rx.word Sep.equal
  11. + (store Simplevars.to_comment_re . (Util.eol|Util.comment_eol))
  12. +
  13. (* View: lns
  14. The sysctl lens *)
  15. -let lns = (Util.empty | comment | Simplevars.entry)*
  16. +let lns = (Util.empty | comment | entry)*
  17. let xfm = transform lns filter