From ee689d975e123a1a80cf22356d745e322b33d3fa Mon Sep 17 00:00:00 2001 From: Peter Oliver Date: Fri, 18 Oct 2024 12:25:57 +0100 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20read=20*~=20macro=20files,=20wh?= =?UTF-8?q?ich=20are=20text=20editor=20backups?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rpmio/macro.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpmio/macro.cc b/rpmio/macro.cc index 1a9f2f63ae..6cc8247359 100644 --- a/rpmio/macro.cc +++ b/rpmio/macro.cc @@ -2074,7 +2074,8 @@ rpmInitMacros(rpmMacroContext mc, const char * macrofiles) for (path = files; *path; path++) { if (rpmFileHasSuffix(*path, ".rpmnew") || rpmFileHasSuffix(*path, ".rpmsave") || - rpmFileHasSuffix(*path, ".rpmorig")) { + rpmFileHasSuffix(*path, ".rpmorig") || + rpmFileHasSuffix(*path, "~")) { continue; } (void) loadMacroFile(mc, *path);