[Rpm-maint] [rpm-software-management/rpm] Shell-like escaping support in %files (PR #1903)

Michal Domonkos notifications at github.com
Wed Apr 27 09:18:41 UTC 2022


@dmnks commented on this pull request.



>      rpmRC res = RPMRC_OK;
     int allow_relative = (RPMFILE_PUBKEY|RPMFILE_DOC|RPMFILE_LICENSE);
 
     t = buf;
-    while ((s = strtokWithQuotes(t, " \t\n")) != NULL) {

Alternatively, we claim that
1) glob escaping only works for regular files and
2) regular files are separated by newlines and therefore don't need quoting for spaces
Which would make the patch a little simpler and less intrusive, otoh, it would make things inconsistent and more complicated to document.

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

Message ID: <rpm-software-management/rpm/pull/1903/review/954581890 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220427/7d18518d/attachment.html>


More information about the Rpm-maint mailing list