diff --git a/augeas.spec b/augeas.spec index fe6c705070377df476df9fde617c07e43cf8152c..b70816faad8ff539d090d42f80a6ff694cd12e9e 100644 --- a/augeas.spec +++ b/augeas.spec @@ -1,6 +1,6 @@ Name: augeas Version: 1.12.0 -Release: 6 +Release: 7 Summary: Augeas is a configuration editing tool for changing configuration files License: LGPLv2+ URL: https://augeas.net/ @@ -11,6 +11,8 @@ Provides: bundled(gnulib) Provides: augeas-libs = %{version}-%{release} augeas-libs%{?_isa} = %{version}-%{release} Obsoletes: augeas-libs < %{version}-%{release} +Patch9000: fix-segment-fault-when-use-augtool.patch + %description Augeas is a configuration editing tool. It parses configuration files in their native formats and transforms them into a tree. Configuration changes are made by manipulating @@ -81,6 +83,9 @@ make check %doc %{_mandir}/man1/au*.1.gz %changelog +* Tue Dec 13 2022 wangkerong - 1.12.0-7 +- fix segment fault when use augtool command + * Thu Mar 18 2021 chengguipeng - 1.12.0-6 - Type:bugfix - ID:NA diff --git a/fix-segment-fault-when-use-augtool.patch b/fix-segment-fault-when-use-augtool.patch new file mode 100644 index 0000000000000000000000000000000000000000..1da0b95657ea2e5659421e36dcd310b3ecf5b9fe --- /dev/null +++ b/fix-segment-fault-when-use-augtool.patch @@ -0,0 +1,24 @@ +From f13e8f91110e1fa3dbd1e053c8f6ffee9e6cdd5d Mon Sep 17 00:00:00 2001 +From: wangkerong +Date: Tue, 10 May 2022 14:35:21 +0800 +Subject: [PATCH] modify-augtool-err.patch + +--- + src/get.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/get.c b/src/get.c +index 94b9ba2..64dc5c1 100644 +--- a/src/get.c ++++ b/src/get.c +@@ -455,6 +455,7 @@ static int match(struct state *state, struct lens *lens, + if (count < -1) { + regexp_match_error(state, lens, count, re); + FREE(regs); ++ FREE(re->re); + return -1; + } + state->regs = regs; +-- +2.27.0 +