hercules-team / augeas

A configuration editing tool and API
http://augeas.net/
GNU Lesser General Public License v2.1
486 stars 199 forks source link

augtool hangs while loading with lens set to "dist/X.lns" #522

Closed jayvdb closed 6 years ago

jayvdb commented 6 years ago

The following hangs when dist is used in the lens name

$ augtool  --noload --noautoload
augtool> print /augeas/load
augtool> set /augeas/load/Fstab/lens "foo/Fstab.lns"
augtool> set /augeas/load/Fstab/incl "/etc/fstab"
augtool> load
error: Lens not found
Can not find lens foo/Fstab.lns
augtool> load
error: Lens not found
Can not find lens foo/Fstab.lns
augtool> set /augeas/load/Fstab/lens "foo2/Fstab.lns"
augtool> load
error: Lens not found
Can not find lens foo2/Fstab.lns
augtool> set /augeas/load/Fstab/lens "dist/Fstab.lns"
augtool> load
Terminated

It is recursively reading /usr/share/augeas/lenses/dist/fstab.aug

This is on Fedora, which packages the lens into /usr/share/augeas/lenses/dist/ , but that looks identical to https://github.com/hercules-team/augeas/blob/master/augeas.spec.in#L111

lutter commented 6 years ago

Thanks for the bug report .. quite the doozy !