head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2026.09.06.18.44.02; author bsiegert; state Exp; branches; next ; commitid TNp9CVbeVgbBMAUG; desc @@ 1.1 log @augeas: install lenses, fix CVE-2025-2588 Make augeas install all the lenses so it is actually usable. Also fix a security issue which is not in a release yet. From Showta Ishizaki in PR pkg/60656. @ text @$NetBSD$ Test that the perl form of adduser.conf is read; see patch-lenses_simplevars.aug. Sent upstream as hercules-team/augeas#893; this is that diff. --- lenses/tests/test_simplevars.aug.orig +++ lenses/tests/test_simplevars.aug @@@@ -34,3 +34,32 @@@@ Support empty values *) test Simplevars.lns get "foo =\n" = { "foo" = "" { } } + +(* Variable: bsd_adduser + adduser(8) on the BSDs writes its config as perl, not as shell *) +let bsd_adduser = "# verbose = [0-2] +verbose = 1 + +# copy dotfiles from this dir (\"/etc/skel\" or \"no\") +dotdir = \"/etc/skel\" + +# List of directories where shells located +# path = ('/bin', '/usr/bin', '/usr/local/bin') +path = ('/bin', '/usr/bin', '/usr/local/bin') + +## DO NOT DELETE THIS LINE! +" + +(* Test: Simplevars.lns *) +test Simplevars.lns get bsd_adduser = + { "#comment" = "verbose = [0-2]" } + { "verbose" = "1" } + { } + { "#comment" = "copy dotfiles from this dir (\"/etc/skel\" or \"no\")" } + { "dotdir" = "\"/etc/skel\"" } + { } + { "#comment" = "List of directories where shells located" } + { "#comment" = "path = ('/bin', '/usr/bin', '/usr/local/bin')" } + { "path" = "('/bin', '/usr/bin', '/usr/local/bin')" } + { } + { "#comment" = "# DO NOT DELETE THIS LINE!" } @