Package: augeas / 1.8.0-1+deb9u1

Metadata

Package Version Patches format
augeas 1.8.0-1+deb9u1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 Install vim addons into correct directory.patch | (download)

doc/Makefile.am | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 install vim addons into correct directory


0002 Skip tests that need root privileges when fakeroot h.patch | (download)

tests/test-put-mount-augnew.sh | 2 1 + 1 - 0 !
tests/test-put-mount-augsave.sh | 2 1 + 1 - 0 !
tests/test-put-mount.sh | 2 1 + 1 - 0 !
3 files changed, 3 insertions(+), 3 deletions(-)

 skip tests that need root privileges when fakeroot has been detected


0003 Make NRPE lens less strict.patch | (download)

lenses/nrpe.aug | 4 3 + 1 - 0 !
lenses/tests/test_nrpe.aug | 13 13 + 0 - 0 !
2 files changed, 16 insertions(+), 1 deletion(-)

 make nrpe lens less strict


0004 src pathx.c parse_name correctly handle trailing whi.patch | (download)

src/pathx.c | 27 21 + 6 - 0 !
tests/test-xpath.c | 59 59 + 0 - 0 !
2 files changed, 80 insertions(+), 6 deletions(-)

 * src/pathx.c (parse_name): correctly handle trailing whitespace in
 names

When a name ended in whitespace, we incorrectly assumed it was always ok to
trim that whitespace. That is not true if that whitespace is escaped,
i.e. if the path expression is something like '/x\ '. In that case, the
name really needs to be literally 'x ', i.e., we can not trim that
whitespace.

The incorrect behavior led to turning '/x\ ' first into 'x\' and then,
because we assume that '\' is always followed by a character inside the
string, when we removed the escaping '\', we would read beyond the end of
the intermediate string result; if we were lucky, that would lead to a
crash, otherwise we'd continue with junk.

We now make sure that escaped whitespace at the end of a string does not
get stripped, avoiding all these headaches.

Fixes RHBZ https://bugzilla.redhat.com/show_bug.cgi?id=1475621