diff options
Diffstat (limited to 'meta/recipes-devtools/rpm/rpm/rpm-verify-files.patch')
-rw-r--r-- | meta/recipes-devtools/rpm/rpm/rpm-verify-files.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rpm/rpm/rpm-verify-files.patch b/meta/recipes-devtools/rpm/rpm/rpm-verify-files.patch new file mode 100644 index 0000000000..fddac7a1c0 --- /dev/null +++ b/meta/recipes-devtools/rpm/rpm/rpm-verify-files.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | lib/verify.c: Fix rpm -V file processing | ||
2 | |||
3 | rpm -V should verify the md5sum and other values on individual files. | ||
4 | A logic error in the query for GHOST files prevented this from working. | ||
5 | |||
6 | [ Upstream-Status: Submitted ] | ||
7 | |||
8 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
9 | |||
10 | Index: rpm-5.4.9/lib/verify.c | ||
11 | =================================================================== | ||
12 | --- rpm-5.4.9.orig/lib/verify.c | ||
13 | +++ rpm-5.4.9/lib/verify.c | ||
14 | @@ -587,7 +587,7 @@ uint32_t fc = rpmfiFC(fi); | ||
15 | |||
16 | /* If not verifying %ghost, skip ghost files. */ | ||
17 | /* XXX the broken!!! logic disables %ghost queries always. */ | ||
18 | - if (!(FF_ISSET(qva->qva_fflags, GHOST) && FF_ISSET(fflags, GHOST))) | ||
19 | + if (!(FF_ISSET(qva->qva_fflags, GHOST)) && FF_ISSET(fflags, GHOST)) | ||
20 | continue; | ||
21 | |||
22 | /* Gather per-file data into a carrier. */ | ||