[Rpm-maint] [rpm-software-management/rpm] Add %{shescape:...} macro for single quoting with escapes for the shell (#1783)

Panu Matilainen notifications at github.com
Thu Sep 23 08:17:26 UTC 2021


@pmatilai commented on this pull request.



> @@ -1145,6 +1145,29 @@ static size_t doVerbose(MacroBuf mb, rpmMacroEntry me, ARGV_t argv)
     return 0;
 }
 
+static size_t doShescape(MacroBuf mb, rpmMacroEntry me, ARGV_t argv)
+{
+    char *result, *dst;
+    const char *src = argv[1];
+
+    result = dst = xmalloc(strlen(src) * 4 + 3);

Not on any input that we care about.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1783#discussion_r714569589
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210923/c3ff285d/attachment.html>


More information about the Rpm-maint mailing list