Robin Powell
09/23/2021, 10:15 PMRobin Powell
09/23/2021, 10:16 PMselect * from augeas where path LIKE '/etc/hosts%';Robin Powell
09/23/2021, 10:17 PMRobin Powell
09/23/2021, 10:21 PMRobin Powell
09/23/2021, 10:21 PMASSERT_EQ(
       SQL("select * from augeas where path LIKE '/etc/hosts/%'").rows().size(),
       0U);Robin Powell
09/23/2021, 10:22 PMmatch /files/etc/hosts/*seph
Robin Powell
09/23/2021, 11:43 PMRobin Powell
09/23/2021, 11:45 PMseph
seph
seph
match /files/*/augeasseph
seph
*//*seph
/seph
/etc/hosts/%/etc/host%/files/etc/hosts*/etc/host%%/files/etc/hosts/*seph
pathselect * from augeas where path LIKE '/etc/%';select * from augeas where path LIKE '/etc/%%';seph
Robin Powell
09/24/2021, 3:49 PMRobin Powell
09/24/2021, 3:50 PMRobin Powell
09/24/2021, 3:50 PM^^ Why doesn't that get converted toĀ is converted to `/files/etc/hosts/%ā./etc/hosts/%
/filles/etc/hosts/*Robin Powell
09/24/2021, 3:50 PM(because the augeas return is is missing that trailing slash)^^ I didn't follow that part at alll.
Robin Powell
09/24/2021, 3:54 PMRobin Powell
09/24/2021, 3:55 PMThis seems reasonable but we should mark it as an API change due to change with queries likeĀ; do I correctly understand that that query currrently returns stuff (which I just checked) but it won't in 5.0 because it gets converted to, where before this would full-scan and have SQL apply theĀselect * from augeas where path LIKE '/etc/hosts%';Ā filtering.LIKE
match /files/etc/hosts*Robin Powell
09/24/2021, 3:56 PMseph
> /etc/hosts/%Ā is converted to `/files/etc/hosts/%ā.
^^ Why doesnāt that get converted toĀ /filles/etc/hosts/*?Ā Like, not āwhy did you make that decision?ā but āwhere in the code does that happen?āTypo, I mean to
/files/etc/hosts/*patternsFromOsqueryseph
%%%seph
path like '/etc/hosts/%/files/etc/hosts/*'path: /etc/hosts