Skip to content

Commit

Permalink
Don’t read *~ macro files, which are text editor backups
Browse files Browse the repository at this point in the history
  • Loading branch information
mavit committed Oct 18, 2024
1 parent c4c3d79 commit ee689d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rpmio/macro.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ee689d9

Please sign in to comment.