[Rpm-maint] [rpm-software-management/rpm] Require macro filenames to end in alphanum char (PR #3399)

Michal Domonkos notifications at github.com
Wed Oct 23 15:44:31 UTC 2024


Make sure (text editor) backup files, such as those with the tilde (~) at the end, aren't processed by our macrofiles globs.  These can appear while editing a macro file in place and may result in confusing behavior where an old version of a macro overrides the one being written, like seen in the ticket #3373.

Rather than enumerating any specific suffixes, just mandate that macro files end with alphanumerics.  That's more of a name sanity check than anything but fits the bill here.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/3399

-- Commit Summary --

  * Require macro filenames to end in alphanum char

-- File Changes --

    M rpmio/macro.cc (4)
    M tests/rpmmacro.at (17)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/3399.patch
https://github.com/rpm-software-management/rpm/pull/3399.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3399
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/3399 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241023/a6adcf9a/attachment.html>


More information about the Rpm-maint mailing list