]> git.pld-linux.org Git - packages/rpm.git/blame - rpm-parseSpec-skip-empty-tags.patch
- rpm-db-ver cap moved to -lib; release 57
[packages/rpm.git] / rpm-parseSpec-skip-empty-tags.patch
CommitLineData
94807250
JR
1--- rpm-5.4.10/build/parseSpec.c.orig 2013-02-25 14:29:07.874848468 +0100
2+++ rpm-5.4.10/build/parseSpec.c 2013-02-25 14:29:25.661698897 +0100
3@@ -92,6 +92,8 @@
4 if (aTags != NULL && aTags[0] != NULL) {
5 ARGV_t av;
6 s = tagCanonicalize(line+1); /* XXX +1 to skip leading '%' */
7+ if (strlen(s) == 0) /* not a tag, just unknown macro */
8+ goto exit;
9 #if defined(RPM_VENDOR_OPENPKG) /* wildcard-matching-arbitrary-tagnames */
10 av = argvSearchLinear(aTags, s, argvFnmatchCasefold);
11 #else
This page took 0.102648 seconds and 4 git commands to generate.